Re: euidaccess() as syscall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 02, 2008 at 06:13:00PM +0100, Oleg Verych wrote:
> open() will change timestamp. `bash` and `dash` have very broken
> workarounds of access() in `test` due to euid requirements. I.e.
> read-only fs for root or various
> selinux-like restrictions are not shown unless open() is used.
> 
> So, it's better just to use stat64(), right?

I don't think stat64 will tell you about selinux or rofs restrictions.

But if the shell is interpreting code, I would bet that a couple of euid
changes aren't going to make even a blip in the overall performance
profile.  If I'm wrong, please show me!

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux