"access -x foo" or bash [ -x foo ] was giving false positives for
root; i.e. a file with no executable bits set was reporting as executable
to the access() call.
This change ensures that at least 1 executable bit is set before letting
root execute it.
Also a couple minor cosmetic cleanups in xfs_iaccess().
Date: Fri Jun 28 10:44:54 PDT 2002
Workarea:
stout.americas.sgi.com:/localhome/src/sandeen/2.4.x-xfs/workarea-alwaysclean
The following file(s) were checked into:
bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs
Modid: 2.4.x-xfs:slinx:122557a
linux/fs/xfs/xfs_inode.c - 1.342
- Don't let CAP_DAC_OVERRIDE override if no execute bits are set
other minor cleanup in xfs_iaccess()
|