From: Laurent Bigonville Date: Tue, 7 Jul 2015 21:10:52 +0000 (+0200) Subject: selinux: explicitly declare the role "base_r" X-Git-Tag: v4.14-rc1~4737^2~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fda4d578ed0a7e1d116f56a15efea0e4ba78acad;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Stephen Smalley Signed-off-by: Paul Moore --- diff --git a/scripts/selinux/mdp/mdp.c b/scripts/selinux/mdp/mdp.c index 62b34ce..e10beb1 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",