| Summary: | access(2) man page has unnecessarily broad warning | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Soren Spies <sspies> |
| Component: | Books & Articles | Assignee: | Remko Lodder <remko> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Soren Spies
2002-06-19 18:00:01 UTC
I've noticed in FreeBSD 5.1 that we have eaccess(2) as well as a much better warning in the man page (explaining the tradeoffs, but still saying "never"). I propose the following patch: diff -u access.2.orig access.2 --- access.2.orig Wed Jul 9 17:16:34 2003 +++ access.2 Wed Jul 9 17:23:46 2003 @@ -144,6 +144,15 @@ .Fn eaccess system call likewise may be subject to races if used inappropriately. +.Pp +.Fn access +remains useful for providing clues to users as to whether operations +make sense for particular filesystem objects (e.g. 'delete' menu +item only highlighted in a writable folder ... avoiding interpretation +of the st_mode bits that the application might not understand -- +e.g. in the case of AFS). It also allows a cheaper file existance +test than +.Ns Xr stat 2 . .Sh SEE ALSO .Xr chmod 2 , .Xr intro 2 , -- Soren Spies Apple Computer, Inc. remko 2007-12-08 22:50:35 UTC
FreeBSD src repository
Modified files:
lib/libc/sys access.2
Log:
Make the warning a bit less 'broad' then it used to be. The access
is seems to be a problem for SUID applications, which we like to
prevent as much as possible.
PR: docs/39530
Submitted by: Soren Spies <sspies at apple dot com>
MFC After: 3 days
Revision Changes Path
1.20 +10 -1 src/lib/libc/sys/access.2
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->patched Patched in -CURRENT Take ownership of the PR Responsible Changed From-To: freebsd-doc->remko Patched in -CURRENT Take ownership of the PR remko 2008-02-10 12:27:33 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
lib/libc/sys access.2
Log:
MFC rev 1.20 access.2
Make the warning a bit less 'broad' then it used to be. The access
is seems to be a problem for SUID applications, which we like to
prevent as much as possible.
PR: docs/39530
Submitted by: Soren Spies <sspies at apple dot com>
MFC After: 3 days
Revision Changes Path
1.19.2.1 +10 -1 src/lib/libc/sys/access.2
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
remko 2008-02-10 12:28:30 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
lib/libc/sys access.2
Log:
MFC rev 1.20 access.2
Make the warning a bit less 'broad' then it used to be. The access
is seems to be a problem for SUID applications, which we like to
prevent as much as possible.
PR: docs/39530
Submitted by: Soren Spies <sspies at apple dot com>
MFC After: 3 days
Revision Changes Path
1.18.12.1 +10 -1 src/lib/libc/sys/access.2
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: patched->closed MFC'ed to relevant branches, thanks for the submission! remko 2008-02-14 21:45:41 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7_0)
lib/libc/sys access.2
Log:
MFC rev 1.20 to 1.23 access.2
v1.23
After issueing a ntpdate [1] I noticed it's already 2008, reflect that
in the last modified date.
Noticed by: brueffer [1]
v1.22
Fix typo (s/existance/existence/)
Noticed by: ceri
v1.21
Fix some style nits.
Prodded by: brueffer
MFC After: 3 days
v1.20
Make the warning a bit less 'broad' then it used to be. The access
is seems to be a problem for SUID applications, which we like to
prevent as much as possible.
PR: docs/39530
Submitted by: Soren Spies <sspies at apple dot com>
MFC After: 3 days
Approved by: re (bmah)
Revision Changes Path
1.19.4.1 +10 -1 src/lib/libc/sys/access.2
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
|