tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: makefs, hardlink and setuid

On Mon, Mar 11, 2013 at 07:19:07PM +0200, Alan Barrett wrote:
> On Mon, 11 Mar 2013, Emmanuel Dreyfus wrote:
> >I am experimenting with crunchgen, and found an odd thing with 
> >makefs:  it seems unable to set a setuid bit on a binary that 
> >has more than 1one link.
> If a binary has multiple links, then they all share the same 
> inode, and thus share the same permission bits.  You can set the 
> setuid bit on all or none of the links, not on only some of them.

You can use a simple suid wrapper program (since suid shell scripts
aren't usually enabled).

Don't make it too generous though!


David Laight:

Home | Main Index | Thread Index | Old Index