[lkml]   [2006]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Sysctl syscall
Andi Kleen wrote:
> Hasso Tepper <> writes:
> > 2.4 and 2.6 kernels and would work with capabilities
> > (sys/capability.h)? Accessing `/proc/sys' directly isn't such
> > alternative as it doesn't work with capabilities.
> What do you mean with "/proc/sys doesn't work with capabilities"?

I have process which drops root privileges after startup and retains only
some privileges using CAP_NET_ADMIN and CAP_SYS_ADMIN capabilities.
I can change values in /proc/sys/net/ipv[46]/* (like turning forwarding
on/off) from this process using sysctl syscall, but I can't write
directly into /proc/sys/net/ipv[46]/* from it.


Hasso Tepper
Elion Enterprises Ltd. [AS3249]
Data Communication Network Administrator
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-11-17 09:11    [W:0.104 / U:5.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site