Skip to content

Commit fda4d57

Browse files
bigonpcmoore
authored andcommitted
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>
1 parent c3c188b commit fda4d57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/selinux/mdp/mdp.c

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ int main(int argc, char *argv[])
9898

9999
/* types, roles, and allows */
100100
fprintf(fout, "type base_t;\n");
101+
fprintf(fout, "role base_r;\n");
101102
fprintf(fout, "role base_r types { base_t };\n");
102103
for (i = 0; secclass_map[i].name; i++)
103104
fprintf(fout, "allow base_t base_t:%s *;\n",

0 commit comments

Comments
 (0)