linux-stable-rt/include
Paul Moore 2b980dbd77 lsm: Add hooks to the TUN driver
The TUN driver lacks any LSM hooks which makes it difficult for LSM modules,
such as SELinux, to enforce access controls on network traffic generated by
TUN users; this is particularly problematic for virtualization apps such as
QEMU and KVM.  This patch adds three new LSM hooks designed to control the
creation and attachment of TUN devices, the hooks are:

 * security_tun_dev_create()
   Provides access control for the creation of new TUN devices

 * security_tun_dev_post_create()
   Provides the ability to create the necessary socket LSM state for newly
   created TUN devices

 * security_tun_dev_attach()
   Provides access control for attaching to existing, persistent TUN devices
   and the ability to update the TUN device's socket LSM state as necessary

Signed-off-by: Paul Moore <paul.moore@hp.com>
Acked-by: Eric Paris <eparis@parisplace.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: James Morris <jmorris@namei.org>
2009-09-01 08:29:48 +10:00
..
acpi
asm-generic
crypto
drm drm/radeon/kms: implement bo busy check + current domain 2009-08-17 12:28:56 +10:00
keys
linux lsm: Add hooks to the TUN driver 2009-09-01 08:29:48 +10:00
math-emu
media
mtd
net net: restore gnet_stats_basic to previous definition 2009-08-17 21:33:49 -07:00
pcmcia
rdma
rxrpc
scsi
sound
trace perf_counter: Zero dead bytes from ftrace raw samples size alignment 2009-08-10 16:51:19 +02:00
video
xen
Kbuild