Skip to content

RFC Fix some multiqueue TUN problems

Paul Moore netdev selinux 3 versions – In review

Get series with b4
b4 am 20121218225001.16104.34454.stgit@localhost

Versions newest first · linked by author and title

  1. v3 RFC Latest2 patches 5 repliesIn review
  2. v2 RFC3 patches 26 repliesSuperseded
  3. v1 RFC2 patches 17 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selinux: add the "attach_queue" permission to the "tun_socket" classsecurity/selinux/include/classmap.h+1 -10 replies
2/2tun: fix LSM/SELinux labeling of tun/tap devicesdrivers/net/tun.c include/linux/security.h security/capability.c +3 more+154 -384 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [RFC PATCH v3 0/2] Fix some multiqueue TUN problems

A refresh/respin of the LSM/SELinux fixes to work on top of Jason's latest API tweak (now living in DaveM's net tree). In general, I believe the hooks and thinking behind the v2 patchset still make sense so no changes there, although I did change the SELinux permission from "create_queue" to "attach_queue" to match the API changes.

Comments are welcome and encouraged; we need to get this fixed before 3.8 is released.

---

Paul Moore (2):
selinux: add the "attach_queue" permission to the "tun_socket" class
tun: fix LSM/SELinux labeling of tun/tap devices

 drivers/net/tun.c                   |   27 ++++++++++++----
 include/linux/security.h            |   59 +++++++++++++++++++++++++++--------
 security/capability.c               |   24 ++++++++++++--
 security/security.c                 |   28 ++++++++++++++---
 security/selinux/hooks.c            |   50 +++++++++++++++++++++++-------
 security/selinux/include/classmap.h |    2 +
 security/selinux/include/objsec.h   |    4 ++
 7 files changed, 155 insertions(+), 39 deletions(-)