home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9563 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.0 KB  |  27 lines

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