diff options
| author | Stephen Hemminger <[email protected]> | 2008-07-25 01:48:32 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-07-25 10:53:45 -0700 |
| commit | 4ecb90090c84210a8bd2a9d7a5906e616735873c (patch) | |
| tree | a7baec8859ff9750296be318400ba4475eb40b6c /include/linux/timerqueue.h | |
| parent | 99541c23cd32bacf1a591ca537a7c0cb9053ad7e (diff) | |
sysctl: allow override of /proc/sys/net with CAP_NET_ADMIN
Extend the permission check for networking sysctl's to allow modification
when current process has CAP_NET_ADMIN capability and is not root. This
version uses the until now unused permissions hook to override the mode
value for /proc/sys/net if accessed by a user with capabilities.
Found while working with Quagga. It is impossible to turn forwarding
on/off through the command interface because Quagga uses secure coding
practice of dropping privledges during initialization and only raising via
capabilities when necessary. Since the dameon has reset real/effective
uid after initialization, all attempts to access /proc/sys/net variables
will fail.
Signed-off-by: Stephen Hemminger <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Cc: Chris Wright <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Andrew Morgan <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions