All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Jiri Popelka <jpopelka-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: euidaccess/faccessat vs. ACLs
Date: Thu, 18 Sep 2014 14:25:05 +0200	[thread overview]
Message-ID: <541ACF21.5060105@redhat.com> (raw)

Hi,

the euidaccess and faccessat(AT_EACCESS) functions are emulated in glibc
and only look at the file's uid/gid.  They do not take ACLs into
account, and this can cause subtle bugs.  This should be noted in the
BUGS section.

Also, the AT_SYMLINK_NOFOLLOW flag to faccessat currently will not work
if specified alone, because Linux does not have an laccess() system
call.  It works if specified together with AT_EACCESS, modulo the above
ACL bug of course.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2014-09-18 12:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=541ACF21.5060105@redhat.com \
    --to=pbonzini-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=jpopelka-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /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.