Skip to contentSkip to conversation

Explicitly declare the role "base_r"

PATCH Applied Laurent Bigonville 3 participants 3 messages Jul 7, 2015 – Jul 13, 2015 SELinux security module

lore
Share & tools
lore
#0 lore raw

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.

---
 scripts/selinux/mdp/mdp.c | 1 +
 1 file changed, 1 insertion(+)
scripts/selinux/mdp/mdp.c +1 -0
index 62b34ce..e10beb1 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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.

Quoted 17 lines
---
 scripts/selinux/mdp/mdp.c | 1 +
 1 file changed, 1 insertion(+)
scripts/selinux/mdp/mdp.c +1 -0
index 62b34ce..e10beb1 100644
@@ -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",
maintainer Applied
#2 lore raw
In reply to Laurent Bigonville
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.

---
 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
index 62b34ce..e10beb1 100644
@@ -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