Bug#743525: symlink permissions misdescribed
tags 715261 fixed-upstream thanks Yes, there are odd exceptions. Under /proc/PID, there are some "magic" symlinks that have other permissions. I"ve added some text to the man page to note this. Thanks for the report. On Linux, the permissions of a symbolic link are not used in any operations; the permissions are always 0777 (read, write, and execute for all user categories), and can't be changed. (Note that there are some "magic" symbolic links in the /proc directory tree—for example, the /proc/PID/fd/* files—that have different permissions.) Cheers, Michael
Bug#743525: symlink permissions misdescribed
Control: tag -1 +confirmed +upstream On Thu, Apr 03, 2014 at 04:51:15PM +0100, Zefram wrote: > Package: manpages > Version: 3.44-1 > Severity: minor > > symlink(7) says: >On Linux, the permissions of a symbolic link are not used in any opera- >tions; the permissions are always 0777 (read, write, and execute for >all user categories), and can't be changed. > > but in reality: > $ ls -l /proc/self/fd > total 0 > lrwx-- 1 zefram zefram 64 Apr 3 16:45 0 -> /dev/pts/13 [...] > so the man page is not correct that "the permissions are always 0777". > It is correct that they can't be changed. I wonder where in the kernel that specificity of sysfs/procfs comes from.. -- Simon Paillard -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#743525: symlink permissions misdescribed
Package: manpages Version: 3.44-1 Severity: minor symlink(7) says: On Linux, the permissions of a symbolic link are not used in any opera- tions; the permissions are always 0777 (read, write, and execute for all user categories), and can't be changed. but in reality: $ ls -l /proc/self/fd total 0 lrwx-- 1 zefram zefram 64 Apr 3 16:45 0 -> /dev/pts/13 lrwx-- 1 zefram zefram 64 Apr 3 16:45 1 -> /dev/pts/13 lrwx-- 1 zefram zefram 64 Apr 3 16:45 2 -> /dev/pts/13 lr-x-- 1 zefram zefram 64 Apr 3 16:45 3 -> /proc/5271/fd so the man page is not correct that "the permissions are always 0777". It is correct that they can't be changed. -zefram -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org