Explicitly declare the role "base_r"
PATCH 1/1 Explicitly declare the role "base_r"
From: Laurent Bigonville <[email protected]>
This fixes the compilation of policy generated by mdp with the recent version of checkpolicy.
Signed-off-by Laurent Bigonville <[email protected]>
--- scripts/selinux/mdp/mdp.c | 1 + 1 file changed, 1 insertion(+)
scripts/selinux/mdp/mdp.c +1 -0
@@ -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",
Signature · 1 line
2.1.4
Quoted 6 lines · Laurent Bigonville
From: Laurent Bigonville <[email protected]>
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]>
Quoted 17 lines
--- scripts/selinux/mdp/mdp.c | 1 + 1 file changed, 1 insertion(+)scripts/selinux/mdp/mdp.c +1
-0@@ -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",
Quoted 9 lines · Laurent Bigonville
From: Laurent Bigonville <[email protected]>
This fixes the compilation of policy generated by mdp with the recent version of checkpolicy.
Signed-off-by Laurent Bigonville <[email protected]>--- scripts/selinux/mdp/mdp.c | 1 + 1 file changed, 1 insertion(+)
Merged into selinux#next, thank you.
Quoted 14 lines
scripts/selinux/mdp/mdp.c +1
-1@@ -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", --2.1.4
Signature · 2 lines
paul moore www.paul-moore.com