Skip to content

New ACL format for better NFSv4 acl interoperability

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest26 patches 27 repliesIn review

Changes from v6 from the cover letter

a) Update patches based on review comments.
b) Add Acked-by:
c) rebase to 3.1-rc10

Patches in v1 No applies recorded yet

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

Reviews trailers per patch

All 26 patches have a Reviewed-by or Acked-by.

PatchDavid Howells
1/26A-b
2/26A-b
3/26A-b
4/26A-b
5/26A-b
6/26A-b
7/26A-b
8/26A-b
9/26A-b A-b A-b
10/26A-b
11/26A-b
12/26A-b
13/26A-b
14/26A-b
15/26A-b
16/26A-b
17/26A-b
18/26A-b
19/26A-b
20/26A-b
21/26A-b
22/26A-b
23/26A-b
24/26A-b
25/26A-b
26/26A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -V7 00/26] 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.

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://github.com/kvaneesh/richacl-tools.git master

To test richacl on ext4 use tune2fs -O richacl to enable richacl feature and mount the file system using -o acl mount option.

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

Changes from v6:
a) Update patches based on review comments.
b) Add Acked-by:
c) rebase to 3.1-rc10

git repository With all the patches can be found at
git://github.com/kvaneesh/linux.git richacl

IMHO the patches are ready to be merged upstream. How do we push these changes to Linus tree ? Andrew, Viro, any comment on how we can get this merged upstream ?

-aneesh