Skip to content

New ACL format for better NFSv4 acl interoperability

Aneesh Kumar K.V linux-ext4 linux-fsdevel linux-nfs lkml 1 version In review

Get series with b4
b4 am 1298469131-16555-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com

Versions newest first

  1. v1 Latest24 patches 15 repliesIn review

Changes from v4 from the cover letter

a) rebase to 2.6.38-rc6
b) Fixes for MAY_DELETE_CHILD and MAY_DELETE_SELF when directory have sticky bits
c) Fixes for NFsv4 permission checking to make it work better with new MAY_* flags

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24vfs: Indicate that the permission functions take all the MAY_* flagsfs/namei.c+3 -30 replies
2/24vfs: Pass all mask flags down to iop->check_aclfs/namei.c fs/posix_acl.c+3 -30 replies
3/24vfs: Add a comment to inode_permission()fs/namei.c+4 -20 replies
4/24vfs: Add generic IS_ACL() test for acl supportfs/namei.c include/linux/fs.h+10 -40 replies
5/24vfs: Add IS_RICHACL() test for richacl supportinclude/linux/fs.h+3 -10 replies
6/24vfs: Optimize out IS_RICHACL() if CONFIG_FS_RICHACL is not definedfs/Kconfig include/linux/fs.h+8 -00 replies
7/24vfs: Add new file and directory create permission flagsfs/namei.c include/linux/fs.h+17 -110 replies
8/24vfs: Add delete child and delete self permission flagsfs/namei.c include/linux/fs.h+28 -140 replies
9/24vfs: Make the inode passed to inode_change_ok non-constfs/attr.c include/linux/fs.h+2 -20 replies
10/24vfs: Add permission flags for setting file attributesfs/attr.c include/linux/fs.h+41 -110 replies
11/24vfs: Make acl_permission_check() work for richaclsfs/namei.c+14 -00 replies
12/24richacl: In-memory representation and helper functionsfs/Makefile fs/richacl_base.c include/linux/richacl.h+357 -00 replies
13/24richacl: Permission mapping functionsfs/richacl_base.c include/linux/richacl.h+164 -00 replies
14/24richacl: Compute maximum file masks from an aclfs/richacl_base.c include/linux/richacl.h+129 -00 replies
15/24richacl: Update the file masks in chmod()fs/richacl_base.c include/linux/richacl.h+41 -00 replies
16/24richacl: Permission check algorithmfs/richacl_base.c include/linux/richacl.h+101 -00 replies
17/24richacl: Create-time inheritancefs/Makefile fs/richacl_base.c fs/richacl_inode.c +1 more+133 -10 replies
18/24richacl: Check if an acl is equivalent to a file modefs/richacl_base.c include/linux/richacl.h+55 -00 replies
19/24richacl: Automatic Inheritancefs/richacl_base.c fs/richacl_inode.c include/linux/richacl.h+38 -40 replies
20/24richacl: xattr mapping functionsfs/Makefile fs/richacl_xattr.c include/linux/richacl_xattr.h+204 -10 replies
21/24ext4: Use IS_POSIXACL() to check for POSIX ACL supportfs/ext4/acl.c fs/ext4/ext4.h fs/ext4/super.c+13 -200 replies
22/24vfs: Cache richacl in struct inodefs/inode.c include/linux/fs.h include/linux/richacl.h+82 -70 replies
23/24ext4: Implement rich acl for ext4fs/ext4/Kconfig fs/ext4/Makefile fs/ext4/acl.c +10 more+367 -80 replies
24/24ext4: Add temporary richacl mount option for ext4fs/ext4/super.c+41 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH -V5 00/24] New ACL format for better NFSv4 acl interoperability

Hi,

The following set of patches implements VFS and ext4 changes needed to implement a new acl model for linux. Rich ACLs are an implementation of NFSv4 ACLs, extended by file masks to fit into the standard POSIX file permission model. They are designed to work seamlessly locally as well as across the NFSv4 and CIFS/SMB2 network file system protocols.

Full patch series including NFS server and client changes can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/agruen/linux-2.6-richacl.git richacl or
git://git.kernel.org/pub/scm/linux/kernel/git/kvaneesh/linux-richacl.git richacl

A user-space utility for displaying and changing richacls is available at [4] (a number of examples can be found at http://acl.bestbits.at/richacl/examples.html).

[4] git://git.kernel.org/pub/scm/linux/kernel/git/agruen/richacl.git master

To test richacl on ext4 use -o richacl mount option. This mount option may later be dropped in favour of a feature flag.

More details regarding richacl can be found at
http://acl.bestbits.at/richacl/

Changes from v4:
a) rebase to 2.6.38-rc6
b) Fixes for MAY_DELETE_CHILD and MAY_DELETE_SELF when directory have sticky bits
c) Fixes for NFsv4 permission checking to make it work better with new MAY_* flags

-aneesh