Bug 15446
Summary: | sysctl(2) can return EACCES without sufficient permissions | ||
---|---|---|---|
Product: | Documentation | Reporter: | Garrett Cooper (yaneurabeya) |
Component: | man-pages | Assignee: | documentation_man-pages (documentation_man-pages) |
Status: | RESOLVED CODE_FIX | ||
Severity: | low | CC: | mtk.manpages, yanegomi |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://sourceforge.net/mailarchive/forum.php?thread_name=364299f41003042320n7437e4a2j219b32a0a5f8dc50%40mail.gmail.com&forum_name=ltp-list | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: |
Description
Garrett Cooper
2010-03-05 07:37:34 UTC
Would someone please look into patching the manpage for this requirement? (In reply to comment #1) > Would someone please look into patching the manpage for this requirement? Garret, could you provide a pointer to the discussion that you mentioned in the report? Sorry -- I canceled my Yahoo email account. Here's a link to this discussion: https://lkml.org/lkml/2010/3/4/309 . Garrett, I've applied a different patch from what you suggest, essentially just making EACCES a synonym of EPERM. index bb2d9a5..b1772d5 100644 --- a/man2/sysctl.2 +++ b/man2/sysctl.2 @@ -78,6 +78,7 @@ Otherwise, a value of \-1 is returned and is set to indicate the error. .SH ERRORS .TP +.TP .B EFAULT The invocation asked for the previous value by setting .I oldval @@ -88,7 +89,7 @@ non-NULL, but allowed zero room in .I name was not found. .TP -.B EPERM +.BR EACCES ", " EPERM No search permission for one of the encountered "directories", or no read permission where .I oldval lines 1-21/21 (END) LGTM. Thanks! |