selinux: generate flask headers during kernel build
authorStephen Smalley <sds@tycho.nsa.gov>
Wed, 30 Sep 2009 17:41:02 +0000 (13:41 -0400)
committerJames Morris <jmorris@namei.org>
Wed, 7 Oct 2009 10:56:44 +0000 (21:56 +1100)
commit8753f6bec352392b52ed9b5e290afb34379f4612
treeb5f381be9f56125309bfbfcaa73d68e08c309747
parentc6d3aaa4e35c71a32a86ececacd4eea7ecfc316c
selinux: generate flask headers during kernel build

Add a simple utility (scripts/selinux/genheaders) and invoke it to
generate the kernel-private class and permission indices in flask.h
and av_permissions.h automatically during the kernel build from the
security class mapping definitions in classmap.h.  Adding new kernel
classes and permissions can then be done just by adding them to classmap.h.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
scripts/selinux/Makefile
scripts/selinux/genheaders/Makefile [new file with mode: 0644]
scripts/selinux/genheaders/genheaders.c [new file with mode: 0644]
security/selinux/Makefile
security/selinux/include/av_permissions.h [deleted file]
security/selinux/include/flask.h [deleted file]
security/selinux/ss/Makefile