SELinux: Auto-generate security_is_socket_class
authorHarry Ciao <qingtao.cao@windriver.com>
Wed, 2 Mar 2011 05:46:08 +0000 (13:46 +0800)
committerEric Paris <eparis@redhat.com>
Thu, 3 Mar 2011 20:19:43 +0000 (15:19 -0500)
commit4bc6c2d5d8386800fde23a8e78cd4f04a0ade0ad
tree9ed72f305050b876d846b44ccf13f63fcbab1ff4
parent0b24dcb7f2f7a0ce9b762eef0362c21c88f47b32
SELinux: Auto-generate security_is_socket_class

The security_is_socket_class() is auto-generated by genheaders based
on classmap.h to reduce maintenance effort when a new class is defined
in SELinux kernel. The name for any socket class should be suffixed by
"socket" and doesn't contain more than one substr of "socket".

Signed-off-by: Harry Ciao <qingtao.cao@windriver.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
scripts/selinux/genheaders/genheaders.c
security/selinux/include/classmap.h