* наб <nabijaczleweli@xxxxxxxxxxxxxxxxxx>, 2023-03-25 22:00:
-The only time that the ownership of a symbolic link matters is
-when the link is being removed or renamed in a directory that
-has the sticky bit set (see
-.BR stat (2)).
Wait, but stat.2 doesn't say anything about the sticky bit?
Oh, apparently this info was removed in e8ff4f53ab9a7cbd ("Remove
information migrated to inode(7) page").
+Only when a symbolic link is in a sticky directory (see
+.BR stat (2))
+does its ownership matter\[em]deletions and renames are subject
+to standard semantics.
That's weird phrasing. What was wrong with the original sentence?
+Additionally, if the
+.I fs.protected_symlinks
+sysctl is set, a symbolic link may only be followed if:
FWIW, this is also documented in proc.5; not sure if we need it in two
places.
+\[bu] owned by the user which follows it, or
s/which/who/?
+\[bu] owned by the same user which owns the directory it resides in.
Ditto.
--
Jakub Wilk