aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLaurent Bigonville <bigon@bigon.be>2015-07-07 23:10:52 +0200
committerPaul Moore <pmoore@redhat.com>2015-07-13 13:32:00 -0400
commitfda4d578ed0a7e1d116f56a15efea0e4ba78acad (patch)
treec37a5e55eaa07a578f0d2fa9fccd6ead91f403a5 /scripts
parentselinux: Create a common helper to determine an inode label [ver #3] (diff)
downloadlinux-dev-fda4d578ed0a7e1d116f56a15efea0e4ba78acad.tar.xz
linux-dev-fda4d578ed0a7e1d116f56a15efea0e4ba78acad.zip
selinux: explicitly declare the role "base_r"
This fixes the compilation of policy generated by mdp with the recent version of checkpolicy. Signed-off-by: Laurent Bigonville <bigon@bigon.be> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/selinux/mdp/mdp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/selinux/mdp/mdp.c b/scripts/selinux/mdp/mdp.c
index 62b34ce1f50d..e10beb11b696 100644
--- a/scripts/selinux/mdp/mdp.c
+++ b/scripts/selinux/mdp/mdp.c
@@ -98,6 +98,7 @@ int main(int argc, char *argv[])
/* types, roles, and allows */
fprintf(fout, "type base_t;\n");
+ fprintf(fout, "role base_r;\n");
fprintf(fout, "role base_r types { base_t };\n");
for (i = 0; secclass_map[i].name; i++)
fprintf(fout, "allow base_t base_t:%s *;\n",