Bug 420661

Summary: Querying file access permissions behaves differently for RHEL3 than other releases
Product: Red Hat Enterprise Linux 3 Reporter: Darcy Christensen <stratoblaster_kid>
Component: bashAssignee: Roman Rakus <rrakus>
Status: CLOSED WONTFIX QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: low    
Version: 3.9CC: rvokal, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-11 13:59:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Darcy Christensen 2007-12-11 22:28:22 UTC
Description of problem:
When querying the file access permissions of a symbolically linked automounted 
directory, particularly -w, from a shell script as root, in RHEL3 the file 
shows as writable when it is mounted as read only.  When the write is 
attempted, of course, it fails.  Apparently RHEL3 uses file premissions behind -
w test where RHEL4, and many other flavors of Linux/UNIX, use the access system 
call, which works correctly.  Is there a work around for this to make this test 
work across multiple Linux/UNIX platforms?

Version-Release number of selected component (if applicable):


How reproducible: Consistantly


Steps to Reproduce:
1.Automount a directory as read only
2.Create a symbolic link to it
3.Write a script testing the -w access (if [ -w dir_name ] ... )
4.sudo as root and run the script
  
Actual results:
directory tests as writable

Expected results:
directory should test as read only

Additional info:

Comment 1 Darcy Christensen 2007-12-11 22:30:03 UTC
Forgot to mention I work for Oracle and this is a work related issue.

Comment 2 Phil Knirsch 2008-04-16 14:45:21 UTC
Thats most likely a bash related problem though, so i'm reassigning it to that
component.

Read ya, Phil

Comment 4 RHEL Program Management 2008-08-11 13:59:09 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.