public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* suid bit behaviour modification in 2.6.0-test5
@ 2003-09-21  0:45 Jean-pierre Cartal
  2003-09-22  3:25 ` Ian Hastie
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-pierre Cartal @ 2003-09-21  0:45 UTC (permalink / raw)
  To: linux-kernel

Hello,

I'm running a standard RH 9 installation upgraded to kernel 2.6.0-test5 
with rpms from http://people.redhat.com/arjanv/2.5/RPMS.kernel/.

I noticed that contrary to what was happening with 2.4.x kernel, suid 
root files don't loose their suid bit when they get overwritten by a 
normal user (see example below)

Is this the intended behaviour or a bug ?

Example :

[cartaljp@localhost test]$ uname -r
2.6.0-0.test5.1.38
[cartaljp@localhost test]$ id
uid=500(cartaljp) gid=500(cartaljp)
[cartaljp@localhost test]$ touch suid_test
[cartaljp@localhost test]$ ls -l
total 0
-rw-rw-r--    1 cartaljp cartaljp        0 Sep 19 07:55 suid_test
[cartaljp@localhost test]$ su -
Password:
[root@localhost test]# chown root ~cartaljp/test/suid_test
[root@localhost test]# chmod 4775 ~cartaljp/test/suid_test
[root@localhost test]# exit
[cartaljp@localhost test]$ ls -l
total 0
-rwsrwxr-x    1 root     cartaljp        0 Sep 19 07:55 suid_test
[cartaljp@localhost test]$ cp /bin/ls suid_test
[cartaljp@localhost test]$ ls -l
total 72
-rwsrwxr-x    1 root     cartaljp    67668 Sep 19 07:56 suid_test <- 
Suid bit is still set whereas with 2.4.x kernel it was reset.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-09-29  3:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-21  0:45 suid bit behaviour modification in 2.6.0-test5 Jean-pierre Cartal
2003-09-22  3:25 ` Ian Hastie
2003-09-23 17:12   ` bill davidsen
2003-09-23 17:54     ` Andries Brouwer
2003-09-26 22:41       ` Ian Hastie
2003-09-29  3:05         ` Ian Hastie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox