Skip to content

Discarding networking privilege via LSM

Michael Stone containers lkml netdev 1 version In review

Get series with b4
b4 am 20091224014258.GA24115@heat

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Security: Add prctl(PR_{GET,SET}_NETWORK) interface. (v2)include/linux/prctl.h include/linux/prctl_network.h include/linux/sched.h +1 more+48 -08 replies
1/3Security: Add prctl(PR_{GET,SET}_NETWORK) interface. (v3)include/linux/prctl.h include/linux/prctl_network.h include/linux/sched.h +1 more+48 -03 replies
2/3Security: Implement prctl(PR_SET_NETWORK, PR_NETWORK_OFF) semantics. (v2)kernel/fork.c kernel/ptrace.c kernel/sys.c +2 more+63 -141 reply
2/3Security: Implement prctl(PR_SET_NETWORK, PR_NETWORK_OFF) semantics. (v3)security/Kconfig security/Makefile security/prctl_network.c+124 -00 replies
3/3Security: Document prctl(PR_{GET,SET}_NETWORK). (v2)Documentation/prctl/network.txt+72 -00 replies
3/3Security: Document prctl(PR_{GET,SET}_NETWORK). (v3)Documentation/prctl/network.txt+74 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Discarding networking privilege via LSM

Alan,

As you requested, here's a (rough) draft of my patch series which uses the security_* hooks instead of direct modification of the networking functions.

Have you further suggestions for improvement?

Regards,

Michael

P.S. - The most notable behavioral difference between this patch and the previous one is that abstract unix sockets are exempted from control in this patch but are restricted by the previous one. We can revisit this detail in subsequent patches if this approach seems viable.

Michael Stone (3):
Security: Add prctl(PR_{GET,SET}_NETWORK) interface. (v3)
Security: Implement prctl(PR_SET_NETWORK, PR_NETWORK_OFF) semantics. (v3)
Security: Document prctl(PR_{GET,SET}_NETWORK). (v3)

  Documentation/prctl/network.txt |   74 ++++++++++++++++++++++++++
  include/linux/prctl.h           |    7 +++
  include/linux/prctl_network.h   |    7 +++
  include/linux/sched.h           |    2 +
  kernel/sys.c                    |   32 +++++++++++
  security/Kconfig                |   13 +++++
  security/Makefile               |    1 +
  security/prctl_network.c        |  110 +++++++++++++++++++++++++++++++++++++++
  8 files changed, 246 insertions(+), 0 deletions(-)

create mode 100644 Documentation/prctl/network.txt create mode 100644 include/linux/prctl_network.h create mode 100644 security/prctl_network.c