Thread (30 messages) 30 messages, 4 authors, 2017-02-13

Re: [PATCH v27 02/21] vfs: Add MAY_CREATE_FILE and MAY_CREATE_DIR permission flags

flat view

From: Andreas Gruenbacher <agruenba@redhat.com>
Date: 2017-02-13 15:35:04
Also in: linux-cifs, linux-ext4, linux-fsdevel, linux-nfs, lkml

Miklos,

On Fri, Dec 2, 2016 at 10:22 AM, Miklos Szeredi [off-list ref] wrote:
On Tue, Oct 11, 2016 at 2:50 PM, Andreas Gruenbacher
[off-list ref] wrote:
quoted
Richacls distinguish between creating non-directories and directories. To
support that, add an isdir parameter to may_create(). When checking
inode_permission() for create permission, pass in an additional
MAY_CREATE_FILE or MAY_CREATE_DIR mask flag.

Add may_replace() to allow checking for delete and create access when
replacing an existing file in vfs_rename().
That works for plain rename, but not for RENAME_EXCHANGE: is_dir and
new_is_dir may be different, which means we can be deleting a
non-directory *and* creating a directory in one dir and vice versa in
the other.
ok, I see now. Should be fixed in the latest posting from just now.

Thanks a lot,
Andreas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help