Messages in this thread | | | From | (Matthias Urlichs) | Subject | Re: Bug in chown -- always kills suid/sgid bits. | Date | 2 Jun 1997 04:55:14 +0200 |
| |
Greg Alexander <galexand@sietch.bloomington.in.us> writes: > > Maybe a new syscall, real_chown(2)? The current chown is obviously not > correct. :) > That real_chown is easily implemented by way of stat()ing the file before the change, and re-setting the appropriate bits afterwards if necessary.
Anyway, clearing the s bits is a Good Thing for security reasons.
I also really like the symlink security patch which prevents the kernel from following symlinks in a directory with the t bit set.
-- Time Lords say, "Go ahead, make my yesterday" -- Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de 90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42
| |