]> Git Repo - linux.git/commitdiff
selinux: explicitly declare the role "base_r"
authorLaurent Bigonville <[email protected]>
Tue, 7 Jul 2015 21:10:52 +0000 (23:10 +0200)
committerPaul Moore <[email protected]>
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 <[email protected]>
Acked-by: Stephen Smalley <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
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",
This page took 0.053686 seconds and 4 git commands to generate.