[Bug 6386] [Busybox - Sysctl ] sysctl trying to read the write only files in /proc/sys when using "-a" option
bugzilla at busybox.net
bugzilla at busybox.net
Tue Jul 16 12:27:39 UTC 2013
https://bugs.busybox.net/show_bug.cgi?id=6386
--- Comment #3 from Gokul S <spgokul at gmail.com> 2013-07-16 12:27:45 UTC ---
Proposed Fix:
If the file does not have the following permissions , then the file will be
ignored.
S_IRUSR - read permission, Owner
S_IRGRP - read permission, Group
S_IROTH - read permission, Others
Here , in the patch code, if the file does not have the above three permission,
then it will enter into the "if" condition. It will return as "EXIT_SUCCESS"
So, the sysctl command execution with "-a" option will not read write only
files and the return value of the command execution will be "zero"
Note:
-----
This issue is not present in procps-3.2.7-151.8.31
A patch is added to resolve this issue : procps-3.2.7-sysctl-writeonly.patch
https://github.com/pisilinux/PisiLinux/blob/master/system/base/procps/files/procps-3.2.7-sysctl-writeonly.patch
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list