By golly, you're right! % su # cp /bin/true /test # chmod u+s /test # exit % ln /test ~/suid_program % su # rm /test # exit % ls -l ~/suid_program -rwsr-xr-x 1 root root 26468 2008-08-21 13:06 suid_program Yikes! Perhaps this indicates the need for a 'delete' system call which makes sure a file is really gone, rather than merely 'unlink'ing one of the names which points to it.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds