Skip to contentSkip to conversation

New: sysctl(2) can return EACCES without sufficient permissions

Bug 15446 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 1 participant 2 messages Mar 5, 2010 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

http://bugzilla.kernel.org/show_bug.cgi?id=15446

URL: http://sourceforge.net/mailarchive/forum.php?thread_na
me=364299f41003042320n7437e4a2j219b32a0a5f8dc50%40mail .gmail.com&forum_name=ltp-list
Summary: sysctl(2) can return EACCES without sufficient
permissions
Product: Documentation
Version: unspecified
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
AssignedTo: documentation_man-pages-ztI5WcYan/[email protected]
ReportedBy: yaneurabeya-/[email protected]
Regression: No

After a semi-lengthy discussion, it turns out that EACCES can and would be set in cases where a sysctl(2) isn't available [in the old model, pending a bug in test_perm] or the file isn't accessible [in the new model].

This currently isn't documented as such in the manpage.

It would probably be prudent to add the following to the manpage:

EACCES The requested access to the sysctl is not allowed.

More testing will need to be performed to ensure that other unexpected errors don't pop up with sysctl(2), if possible time-wise.

Credit goes to Shi Weihua for finding the documentation bug, and Eric W. Biederman for noting the bug in the original sysctl(2) implementation.

Signature · 7 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): bug-15446-11311-V0hAGp6uBxO456/isadD/[email protected]/

#2 lore raw

[Bug 15446] sysctl(2) can return EACCES without sufficient permissions

http://bugzilla.kernel.org/show_bug.cgi?id=15446

Garrett Cooper <yaneurabeya-/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |low

Signature · 7 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html