]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/selinux/mdp: fix initial SID handling
authorStephen Smalley <stephen.smalley.work@gmail.com>
Wed, 17 Jun 2020 19:22:16 +0000 (15:22 -0400)
committerPaul Moore <paul@paul-moore.com>
Wed, 24 Jun 2020 00:48:15 +0000 (20:48 -0400)
commit1e66fe4e69744b76975a15cfa0c3d976c99583c5
treeb3d8df33b665014b7d3bed74c12739168da1dd3d
parent49a0e1e889229ea58bee92c3051fe8cda5da7547
scripts/selinux/mdp: fix initial SID handling

commit 867c8d62e81c ("selinux: remove unused initial SIDs and improve
handling") broke scripts/selinux/mdp since the unused initial SID names
were removed and the corresponding generation of policy initial SID
definitions by mdp was not updated accordingly.  Fix it.  With latest
upstream checkpolicy it is no longer necessary to include the SID context
definitions for the unused initial SIDs but retain them for compatibility
with older checkpolicy.

Fixes: 867c8d62e81c ("selinux: remove unused initial SIDs and improve handling")
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
scripts/selinux/mdp/mdp.c