diff options
author | Stephen Smalley | 2009-09-30 13:41:02 -0400 |
---|---|---|
committer | James Morris | 2009-10-07 21:56:44 +1100 |
commit | 8753f6bec352392b52ed9b5e290afb34379f4612 (patch) | |
tree | b5f381be9f56125309bfbfcaa73d68e08c309747 /scripts/selinux/genheaders/Makefile | |
parent | c6d3aaa4e35c71a32a86ececacd4eea7ecfc316c (diff) |
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>
Diffstat (limited to 'scripts/selinux/genheaders/Makefile')
-rw-r--r-- | scripts/selinux/genheaders/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/selinux/genheaders/Makefile b/scripts/selinux/genheaders/Makefile new file mode 100644 index 000000000000..417b165008ee --- /dev/null +++ b/scripts/selinux/genheaders/Makefile @@ -0,0 +1,5 @@ +hostprogs-y := genheaders +HOST_EXTRACFLAGS += -Isecurity/selinux/include + +always := $(hostprogs-y) +clean-files := $(hostprogs-y) |