tech-security archive

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

Re: hardlinks to setuid binaries



Here's some conditions we could apply to making hard links:

1. [zfs] Caller must own file.

2. [linux with protected_hardlinks] Either:
   (a) Caller must own file.
   (b) File must be regular and non-suid/sgid, and caller must have
       read&write access.

3. [least restrictive I could think of to prevent this attack] Either:
   (a) If suid, caller must own file.
   (b) If sgid, caller must be in group.

If we apply conditions, I think we should apply them uniformly across
file systems.


Home | Main Index | Thread Index | Old Index