From: Matthew Wilcox <matthew@wil.cx>
To: Oleg Verych <olecom@gmail.com>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: euidaccess() as syscall
Date: Fri, 2 May 2008 11:35:13 -0600 [thread overview]
Message-ID: <20080502173513.GK14976@parisc-linux.org> (raw)
In-Reply-To: <8499950a0805021013g76261641r847ab18e648693a1@mail.gmail.com>
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."
prev parent reply other threads:[~2008-05-02 17:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-02 16:59 euidaccess() as syscall Oleg Verych
2008-05-02 17:06 ` Matthew Wilcox
2008-05-02 17:13 ` Oleg Verych
2008-05-02 17:33 ` Jamie Lokier
2008-05-02 18:45 ` Oleg Verych
2008-05-05 19:21 ` code example (Re: euidaccess() as syscall) Oleg Verych
2008-05-02 17:35 ` Matthew Wilcox [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080502173513.GK14976@parisc-linux.org \
--to=matthew@wil.cx \
--cc=linux-fsdevel@vger.kernel.org \
--cc=olecom@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.