]> asedeno.scripts.mit.edu Git - linux.git/commit
selinux: genheaders should fail if too many permissions are defined
authorStephen Smalley <sds@tycho.nsa.gov>
Tue, 25 Jul 2017 16:14:12 +0000 (12:14 -0400)
committerPaul Moore <paul@paul-moore.com>
Mon, 31 Jul 2017 23:03:02 +0000 (19:03 -0400)
commit20a8d62eeff844a8624d6b58a0227c057b1aa43f
tree56877fcae339098e9651439856d37fc0e84cd7a6
parentcd0d877d633ef46ec72d53eebe0bf930e7506fa4
selinux: genheaders should fail if too many permissions are defined

Ensure that genheaders fails with an error if too many permissions
are defined in a class to fit within an access vector. This is similar
to a check performed by checkpolicy when compiling the policy.

Also, fix the suffix on the permission constants generated by this program.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
scripts/selinux/genheaders/genheaders.c