]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
selinux: explicitly declare the role "base_r"
authorLaurent Bigonville <bigon@bigon.be>
Tue, 7 Jul 2015 21:10:52 +0000 (23:10 +0200)
committerPaul Moore <pmoore@redhat.com>
Mon, 13 Jul 2015 17:32:00 +0000 (13:32 -0400)
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>
scripts/selinux/mdp/mdp.c

index 62b34ce1f50dd16a0aed513ad40a31baead586ac..e10beb11b696e4f6d289e3c74a7dddf970b1b66b 100644 (file)
@@ -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",