Bugzilla – Bug 686817
forbid creating hard links to foreign objects
Last modified: 2011-07-06 10:47:37 UTC
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.0) Gecko/20100101 Firefox/4.0 An operator should not be allowed to create hard links to foreign objects in a sticky directory it cannot unconditionally write to (drwxrwxrwt) because she has to ask the object’s owner to remove them afterwards. In other words, the operator should be able to undo every operation she performs, (with hardware permitting and suid operations excepted). Reproducible: Always Steps to Reproduce: 1. { cd /tmp && ln /bin/ls ls && rm ls; } Actual Results: 1. rm: operation not permitted Expected Results: 1. ln: operation not permitted Coreutils bug#8117 (INVALID).
Please report this upstream by sending a mail to bug-coreutils@gnu.org. This is nothing we would implement ourselves.
Quoting the closing upstream: <** Yes this is true. But this doesn't have anything to do with either 'ln' or 'rm' but is instead a behavior associated with Unix filesystems and specifically the behavior of the sticky-bit on directories. It is an operating system policy. Therefore I am tagging this as not a bug in the bug tracking system. **> I understand that openSUSE may have nothing to do with it; I reopen this bug because it turns out upstream has been mis-identified.
Then figure out yourself where upstream could be! As it looks you probably should bring this up with the POSIX folks.