home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / bsd / 10262 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.5 KB  |  56 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!cs.utexas.edu!wotan.compaq.com!moxie!hackney
  3. From: hackney@moxie.hou.tx.us (Greg Hackney)
  4. Subject: 386BSD - Bug in UFS file system + proposed fix
  5. Message-ID: <1992Dec16.012248.8123@moxie.hou.tx.us>
  6. Sender: hackney@moxie.hou.tx.us (Greg Hackney)
  7. Organization: None
  8. Date: Wed, 16 Dec 1992 01:22:48 GMT
  9. Lines: 45
  10.  
  11. [ I posted this once, but I'm reasonably sure it didn't make it out ]
  12.  
  13. There is a major bug in the 386BSD UFS code relating to file permissions.
  14. The major symptom is:
  15.  
  16.    Can't read most files that you don't own on a remote NFS 386BSD system,
  17.    although there is public read permission, i.e.:
  18.  
  19. -r--r--r--   1 root     other          5 Dec 15 19:15 /tmp/hell
  20.  
  21. A very minor symptom is you can't read some LOCAL files, although
  22. there is public read permission, i.e. a file that looks like:
  23.  
  24. -------r--   1 root     other          5 Dec 15 19:15 /tmp/hell
  25.  
  26. [ This functionality seems broken on SunOS 4.1 too, but not on USL S5R4. ]
  27.  
  28. Attached is the proposed fix for 386BSD.
  29. --
  30. Greg Hackney  hackney@compaq.com
  31. Mike Busby    mcb@compaq.com
  32.  
  33. ---< cut here >---
  34.  
  35. *** sys.386bsd/ufs/ufs_vnops.c.orig    Tue Dec 15 19:07:09 1992
  36. --- sys.386bsd/ufs/ufs_vnops.c    Tue Dec 15 19:06:55 1992
  37. ***************
  38. *** 201,207 ****
  39.   found:
  40.           ;
  41.       }
  42. !     if ((ip->i_mode & mode) == mode)
  43.           return (0);
  44.       return (EACCES);
  45.   }
  46. --- 201,207 ----
  47.   found:
  48.           ;
  49.       }
  50. !     if ((ip->i_mode & mode) != 0)
  51.           return (0);
  52.       return (EACCES);
  53.   }
  54.  
  55.  
  56.