mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Bruno Prémont" <bonbons@linux-vserver.org>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Filesystem (directory) permissions meaning difference for x86_64 and x86 for 3.1?
Date: Wed, 9 Nov 2011 21:51:25 +0100	[thread overview]
Message-ID: <20111109215125.7c1c3d3a@neptune.home> (raw)

[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]

Hi,

On a x86_64 system I'm getting permission denied when trying to chdir()
into a directory where I have only 'x' permissions (be it with unix
permissions or with posix ACLs).
For the same layout of directory I can successfully chdir() on x86 as I
can with older kernels of 2.6 series.

In both cases the filesystem is tmpfs with support for posix ACLs and
kernel is 3.1.0.


Directory layout:
drwx--x---  3 root test   60 Nov  9 21:14 /tmp/btest
drwxrwx---  2 root test   40 Nov  9 21:14 /tmp/btest/subtest
drwxr-x---+ 3 root root   60 Nov  9 21:10 /tmp/test
drwxrwx---+ 2 root root   40 Nov  9 21:10 /tmp/test/subtest

Posix ACLs
# file: /tmp/test
# owner: root
# group: root
user::rwx
group::r-x
group:test:--x
mask::r-x
other::---

# file: test/subtest/
# owner: root
# group: root
user::rwx
group::r-x
group:test:rwx
mask::rwx
other::---


When executing as user test (with test as only group), on x86_64 I get
EPERM on chdir(X) where X is any one of the 4 directories above.

On x86 I can chdir() into the directory without issue (as expected),
and when in /tmp/test (or /tmp/btest) I get EPERM when trying to list
contents - expected as well. Under subtest I can list content.

The same results are obtained on XFS filesystem.

Any idea what's wrong?

Both test configs attached.


Bruno

[-- Attachment #2: x86.config.bz2 --]
[-- Type: application/x-bzip, Size: 5162 bytes --]

[-- Attachment #3: x86_64.config.bz2 --]
[-- Type: application/x-bzip, Size: 3723 bytes --]

             reply	other threads:[~2011-11-09 20:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-09 20:51 Bruno Prémont [this message]
2011-11-13 11:11 ` [resolved] " Bruno Prémont

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=20111109215125.7c1c3d3a@neptune.home \
    --to=bonbons@linux-vserver.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®