All of lore.kernel.org
 help / color / mirror / Atom feed
* [Virtio-fs] Question on ACLs support in virtiofs
@ 2021-02-12 10:30 Luis Henriques
  2021-02-15 20:52   ` Vivek Goyal
  0 siblings, 1 reply; 10+ messages in thread
From: Luis Henriques @ 2021-02-12 10:30 UTC (permalink / raw)
  To: virtio-fs

Hi!

I've recently executed the generic fstests on virtiofs and decided to have
a closer look at generic/099 failure.  In a nutshell, here's the sequence
of commands that reproduce that failure:

# umask 0
# mkdir acldir
# chacl -b "u::rwx,g::rwx,o::rwx" "u::r-x,g::r--,o::---" acldir
# touch acldir/file1
# umask 722
# touch acldir/file2
# ls -l acldir
total 0
-r--r----- 1 root root 0 Feb 12 10:04 file1
----r----- 1 root root 0 Feb 12 10:05 file2

The failure is that setting umask to 722 shouldn't affect the new file2
because acldir has a default ACL (from umask(2): "... if the parent
directory has a default ACL (see acl(5)), the umask is ignored...").

So... I tried to have look at the code, and initially I thought that the
problem was in (kernel) function fuse_create_open(), where we have this:

	if (!fm->fc->dont_mask)
		mode &= ~current_umask();

but then I went down the rabbit hole, into the user-space code, and
couldn't reach a conclusion.  Maybe the issue is that there's in fact no
support for this POSIX ACLs in virtiofs/FUSE?  Any ideas?

Cheers,
-- 
Luis


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-02-17 20:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-12 10:30 [Virtio-fs] Question on ACLs support in virtiofs Luis Henriques
2021-02-15 20:52 ` Vivek Goyal
2021-02-15 20:52   ` Vivek Goyal
2021-02-16 15:11   ` Miklos Szeredi
2021-02-16 15:11     ` Miklos Szeredi
2021-02-16 15:54     ` Vivek Goyal
2021-02-17 20:08       ` Dr. David Alan Gilbert
2021-02-17 20:08         ` Dr. David Alan Gilbert
2021-02-17 20:52         ` Vivek Goyal
2021-02-17 20:52           ` Vivek Goyal

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.