Re: Antw: Re: /sys and access(2): Correctly implemented?

2012-07-09 Thread Ulrich Windl
Hi! Still the problem seems to be related to the sysfs: # cd /tmp # touch testfile # chmod u=w,go= testfile # F=/tmp/testfile # test -r "$F" && cat "$F" So it seems access(2) works correctly for root and "normal" filesystems. That's why I came up with the issue here. Regards, Ulrich >>> Ryan

Re: Antw: Re: /sys and access(2): Correctly implemented?

2012-07-09 Thread Ryan Mallon
On 09/07/12 16:23, Ulrich Windl wrote: Ryan Mallon schrieb am 09.07.2012 um 01:24 in Nachricht > <4ffa16b6.9050...@gmail.com>: >> On 06/07/12 16:27, Ulrich Windl wrote: >>> Hi! >>> >>> Recently I found a problem with the command (kernel 3.0.34-0.7-default from >> SLES 11 SP2, run as root):

Antw: Re: /sys and access(2): Correctly implemented?

2012-07-09 Thread Ulrich Windl
>>> Ryan Mallon schrieb am 09.07.2012 um 01:24 in Nachricht <4ffa16b6.9050...@gmail.com>: > On 06/07/12 16:27, Ulrich Windl wrote: > > Hi! > > > > Recently I found a problem with the command (kernel 3.0.34-0.7-default from > SLES 11 SP2, run as root): > > test -r "$file" && cat "$file" > >

Antw: Re: /sys and access(2): Correctly implemented?

2012-07-09 Thread Ulrich Windl
Ryan Mallon rmal...@gmail.com schrieb am 09.07.2012 um 01:24 in Nachricht 4ffa16b6.9050...@gmail.com: On 06/07/12 16:27, Ulrich Windl wrote: Hi! Recently I found a problem with the command (kernel 3.0.34-0.7-default from SLES 11 SP2, run as root): test -r $file cat $file emitting

Re: Antw: Re: /sys and access(2): Correctly implemented?

2012-07-09 Thread Ryan Mallon
On 09/07/12 16:23, Ulrich Windl wrote: Ryan Mallon rmal...@gmail.com schrieb am 09.07.2012 um 01:24 in Nachricht 4ffa16b6.9050...@gmail.com: On 06/07/12 16:27, Ulrich Windl wrote: Hi! Recently I found a problem with the command (kernel 3.0.34-0.7-default from SLES 11 SP2, run as root):

Re: Antw: Re: /sys and access(2): Correctly implemented?

2012-07-09 Thread Ulrich Windl
Hi! Still the problem seems to be related to the sysfs: # cd /tmp # touch testfile # chmod u=w,go= testfile # F=/tmp/testfile # test -r $F cat $F So it seems access(2) works correctly for root and normal filesystems. That's why I came up with the issue here. Regards, Ulrich Ryan Mallon