![Paul Moore](/assets/img/avatar_default.png)
Add support for the new TUN LSM hooks: security_tun_dev_create(), security_tun_dev_post_create() and security_tun_dev_attach(). This includes the addition of a new object class, tun_socket, which represents the socks associated with TUN devices. The _tun_dev_create() and _tun_dev_post_create() hooks are fairly similar to the standard socket functions but _tun_dev_attach() is a bit special. The _tun_dev_attach() is unique because it involves a domain attaching to an existing TUN device and its associated tun_socket object, an operation which does not exist with standard sockets and most closely resembles a relabel operation. Signed-off-by: Paul Moore <paul.moore@hp.com> Acked-by: Eric Paris <eparis@parisplace.org> Signed-off-by: James Morris <jmorris@namei.org>
35 lines
1.7 KiB
C
35 lines
1.7 KiB
C
/* This file is automatically generated. Do not edit. */
|
|
S_(SECCLASS_DIR, file, 0x00020000UL)
|
|
S_(SECCLASS_FILE, file, 0x00020000UL)
|
|
S_(SECCLASS_LNK_FILE, file, 0x00020000UL)
|
|
S_(SECCLASS_CHR_FILE, file, 0x00020000UL)
|
|
S_(SECCLASS_BLK_FILE, file, 0x00020000UL)
|
|
S_(SECCLASS_SOCK_FILE, file, 0x00020000UL)
|
|
S_(SECCLASS_FIFO_FILE, file, 0x00020000UL)
|
|
S_(SECCLASS_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_TCP_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_UDP_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_RAWIP_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_NETLINK_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_PACKET_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_KEY_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_UNIX_STREAM_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_UNIX_DGRAM_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_TUN_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_IPC, ipc, 0x00000200UL)
|
|
S_(SECCLASS_SEM, ipc, 0x00000200UL)
|
|
S_(SECCLASS_MSGQ, ipc, 0x00000200UL)
|
|
S_(SECCLASS_SHM, ipc, 0x00000200UL)
|
|
S_(SECCLASS_NETLINK_ROUTE_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_NETLINK_FIREWALL_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_NETLINK_TCPDIAG_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_NETLINK_NFLOG_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_NETLINK_XFRM_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_NETLINK_SELINUX_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_NETLINK_AUDIT_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_NETLINK_IP6FW_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_NETLINK_DNRT_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_NETLINK_KOBJECT_UEVENT_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_APPLETALK_SOCKET, socket, 0x00400000UL)
|
|
S_(SECCLASS_DCCP_SOCKET, socket, 0x00400000UL)
|