This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5778] pathconf(path,_PC_CHOWN_RESTRICTED) does not work correctly under Linux
- From: "axel dot philipp at mtu dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Mar 2008 16:17:27 -0000
- Subject: [Bug libc/5778] pathconf(path,_PC_CHOWN_RESTRICTED) does not work correctly under Linux
- References: <20080220140417.5778.axel.philipp@mtu.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From axel dot philipp at mtu dot de 2008-03-10 16:17 -------
Thanks for the patch.
When I look at the explanation in posix/unistd.h
If any is defined as other than -1, the corresponding
option is true for all files. If a symbol is not defined at all, the value
for a specific file can be obtained from `pathconf' and `fpathconf'.
I wonder whether _POSIX_CHOWN_RESTRICTED shouldn't be undefined instead of
being set to 0.
XFS was just an example. Linux also allows unrestricted chown on NFS mounted
filesystems if the NFS server is configured so. It's certainly difficult for
glibc to handle such cases as long as the kernel does not provide a query
interface for pathconf. Perhaps errno could be set to EINVAL (in the meaning of
not implemented) in such cases.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5778
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.