home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!gene.fwi.uva.nl!vesseur
- From: vesseur@fwi.uva.nl (Joep JJ Vesseur)
- Subject: clearing SUID bit on writes
- Message-ID: <1992Sep1.091147.23942@fwi.uva.nl>
- Sender: news@fwi.uva.nl
- Nntp-Posting-Host: gene.fwi.uva.nl
- Organization: FWI, University of Amsterdam
- Date: Tue, 1 Sep 1992 09:11:47 GMT
- Lines: 15
-
- when appending to a file with S_ISUID bit set, linux keeps the
- 'bit up', while i think it's desirable that whenever anyone appends
- to such a file, the bit gets cleared. the same holds for S_ISGID
- bits. i don't know whether the behaviour of setuid files is defined
- somewhere (at least i can't find it in 'the design and implementation
- of the 4.3bsd unix operating system', i don't have docs on sysV);
- all i know is that SunOs clears the bit.
- adding this behaviour should be straightforeward (about three lines
- in fs/read_write.c: sys_write()), but maybe i'm missing something
- and it is left out intentionally?
-
- joep
-
- ---
- joep vesseur ----- email: vesseur@fwi.uva.nl
-