Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fda4d578 authored by Laurent Bigonville's avatar Laurent Bigonville Committed by Paul Moore
Browse files

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: default avatarLaurent Bigonville <bigon@bigon.be>
Acked-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
parent c3c188b2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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",