]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: add the "attach_queue" permission to the "tun_socket" class
authorPaul Moore <pmoore@redhat.com>
Mon, 14 Jan 2013 07:12:13 +0000 (07:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jan 2013 23:16:59 +0000 (18:16 -0500)
commit983901ffe7ac70780176702499280d76c70fb079
treea481cf442e39dae7f0392b38db461f5b3076e7eb
parent173b4ee25d9763e3018693e1103cb99b3150fd05
selinux: add the "attach_queue" permission to the "tun_socket" class

Add a new permission to align with the new TUN multiqueue support,
"tun_socket:attach_queue".

The corresponding SELinux reference policy patch is show below:

 diff --git a/policy/flask/access_vectors b/policy/flask/access_vectors
 index 28802c5..a0664a1 100644
 --- a/policy/flask/access_vectors
 +++ b/policy/flask/access_vectors
 @@ -827,6 +827,9 @@ class kernel_service

  class tun_socket
  inherits socket
 +{
 +       attach_queue
 +}

  class x_pointer
  inherits x_device

Signed-off-by: Paul Moore <pmoore@redhat.com>
Acked-by: Eric Paris <eparis@parisplace.org>
Tested-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
security/selinux/include/classmap.h