android_kernel_xiaomi_sm8350/security/selinux/include
Venkat Yekkirala 7420ed23a4 [NetLabel]: SELinux support
Add NetLabel support to the SELinux LSM and modify the
socket_post_create() LSM hook to return an error code.  The most
significant part of this patch is the addition of NetLabel hooks into
the following SELinux LSM hooks:

 * selinux_file_permission()
 * selinux_socket_sendmsg()
 * selinux_socket_post_create()
 * selinux_socket_sock_rcv_skb()
 * selinux_socket_getpeersec_stream()
 * selinux_socket_getpeersec_dgram()
 * selinux_sock_graft()
 * selinux_inet_conn_request()

The basic reasoning behind this patch is that outgoing packets are
"NetLabel'd" by labeling their socket and the NetLabel security
attributes are checked via the additional hook in
selinux_socket_sock_rcv_skb().  NetLabel itself is only a labeling
mechanism, similar to filesystem extended attributes, it is up to the
SELinux enforcement mechanism to perform the actual access checks.

In addition to the changes outlined above this patch also includes
some changes to the extended bitmap (ebitmap) and multi-level security
(mls) code to import and export SELinux TE/MLS attributes into and out
of NetLabel.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-09-22 14:53:36 -07:00
..
av_inherit.h [SELINUX]: add security class for appletalk sockets 2006-06-17 21:29:51 -07:00
av_perm_to_string.h [MLSXFRM]: Granular IPSec associations for use in MLS environments 2006-09-22 14:53:20 -07:00
av_permissions.h [MLSXFRM]: Granular IPSec associations for use in MLS environments 2006-09-22 14:53:20 -07:00
avc_ss.h
avc.h
class_to_string.h [PATCH] selinux: add hooks for key subsystem 2006-06-22 15:05:55 -07:00
common_perm_to_string.h
conditional.h
flask.h [PATCH] selinux: add hooks for key subsystem 2006-06-22 15:05:55 -07:00
initial_sid_to_string.h
netif.h
objsec.h [NetLabel]: SELinux support 2006-09-22 14:53:36 -07:00
security.h [MLSXFRM]: Define new SELinux service routine 2006-09-22 14:53:21 -07:00
selinux_netlabel.h [NetLabel]: SELinux support 2006-09-22 14:53:36 -07:00
xfrm.h [MLSXFRM]: Fix build with SECURITY_NETWORK_XFRM disabled. 2006-09-22 14:53:30 -07:00