提交 fda4d578 编写于 作者: L Laurent Bigonville 提交者: Paul Moore

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: NLaurent Bigonville <bigon@bigon.be>
Acked-by: NStephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: NPaul Moore <pmoore@redhat.com>
上级 c3c188b2
...@@ -98,6 +98,7 @@ int main(int argc, char *argv[]) ...@@ -98,6 +98,7 @@ int main(int argc, char *argv[])
/* types, roles, and allows */ /* types, roles, and allows */
fprintf(fout, "type base_t;\n"); fprintf(fout, "type base_t;\n");
fprintf(fout, "role base_r;\n");
fprintf(fout, "role base_r types { base_t };\n"); fprintf(fout, "role base_r types { base_t };\n");
for (i = 0; secclass_map[i].name; i++) for (i = 0; secclass_map[i].name; i++)
fprintf(fout, "allow base_t base_t:%s *;\n", fprintf(fout, "allow base_t base_t:%s *;\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册