[Bug 236558] Re: sysctl: permission denied

AceLan Kao acelan at gmail.com
Fri Jun 25 06:12:50 UTC 2010


dino99,

I think it does not a kernel bug or an issue. It just doesn't have the read permission for "sysctl" to read the data from it.
As you can see in the "/proc/sys" directory, not all the files are readable, some of them are only have write permission. That means you can't read any data from it and inside kernel source, it doesn't implement the read function for the file.

% ls -l /proc/sys/kernel/cad_pid /proc/sys/fs/binfmt_misc/register /proc/sys/net/ipv4/route/flush /proc/sys/net/ipv6/route/flush
--w------- 1 root root 0 2010-06-22 09:35 /proc/sys/fs/binfmt_misc/register
-rw------- 1 root root 0 2010-06-25 14:11 /proc/sys/kernel/cad_pid
--w------- 1 root root 0 2010-06-25 14:12 /proc/sys/net/ipv4/route/flush
--w------- 1 root root 0 2010-06-25 14:12 /proc/sys/net/ipv6/route/flush

So, I'm going to close this bug if you can accept my explanation.

-- 
sysctl: permission denied
https://bugs.launchpad.net/bugs/236558
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list