lkml.org 
[lkml]   [1997]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Bug in chown -- always kills suid/sgid bits.
Date
  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

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.030 / U:2.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site