xfs
[Top] [All Lists]

TAKE - fix root access() and non-executables

Subject: TAKE - fix root access() and non-executables
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Fri, 28 Jun 2002 12:48:32 -0500
Sender: owner-linux-xfs@xxxxxxxxxxx
"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()



<Prev in Thread] Current Thread [Next in Thread>
  • TAKE - fix root access() and non-executables, Eric Sandeen <=