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 1398615293-22931-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com

Versions newest first

  1. v1 Latest22 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22vfs: Add generic IS_ACL() test for acl supportfs/namei.c include/linux/fs.h include/uapi/linux/fs.h+11 -50 replies
2/22vfs: Add IS_RICHACL() test for richacl supportinclude/linux/fs.h include/uapi/linux/fs.h+3 -10 replies
3/22vfs: Optimize out IS_RICHACL() if CONFIG_FS_RICHACL is not definedfs/Kconfig include/linux/fs.h+8 -00 replies
4/22vfs: check for directory earlyfs/namei.c+3 -20 replies
5/22vfs: Add new file and directory create permission flagsfs/namei.c include/linux/fs.h+14 -93 replies
6/22vfs: Add delete child and delete self permission flagsfs/namei.c include/linux/fs.h+36 -112 replies
7/22vfs: Make the inode passed to inode_change_ok non-constfs/attr.c include/linux/fs.h+2 -20 replies
8/22vfs: Add permission flags for setting file attributesfs/attr.c fs/namei.c include/linux/fs.h+61 -132 replies
9/22vfs: Make acl_permission_check() work for richaclsfs/namei.c+13 -02 replies
10/22richacl: In-memory representation and helper functionsfs/Makefile fs/richacl_base.c include/linux/richacl.h+308 -03 replies
11/22richacl: Permission mapping functionsfs/richacl_base.c include/linux/richacl.h+164 -00 replies
12/22richacl: Compute maximum file masks from an aclfs/richacl_base.c include/linux/richacl.h+129 -00 replies
13/22richacl: Update the file masks in chmod()fs/richacl_base.c include/linux/richacl.h+41 -00 replies
14/22richacl: Permission check algorithmfs/richacl_base.c include/linux/richacl.h+104 -00 replies
15/22richacl: Create-time inheritancefs/Makefile fs/richacl_base.c fs/richacl_inode.c +1 more+133 -10 replies
16/22richacl: Check if an acl is equivalent to a file modefs/richacl_base.c include/linux/richacl.h+55 -00 replies
17/22richacl: Automatic Inheritancefs/richacl_base.c fs/richacl_inode.c include/linux/richacl.h+37 -30 replies
18/22richacl: xattr mapping functionsfs/Makefile fs/richacl_xattr.c include/linux/richacl_xattr.h+177 -10 replies
19/22vfs: Cache richacl in struct inodefs/inode.c include/linux/fs.h include/linux/richacl.h+83 -73 replies
20/22vfs: Add richacl permission checkfs/attr.c fs/namei.c fs/richacl_base.c +2 more+73 -40 replies
21/22ext4: Implement rich acl for ext4fs/ext4/Kconfig fs/ext4/Makefile fs/ext4/acl.c +9 more+330 -200 replies
22/22ext4: Add Ext4 compat richacl feature flagfs/ext4/ext4.h fs/ext4/super.c+40 -103 replies

Reviews trailers per patch

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

Read the v1 thread

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

Hi

As per LSF/MM summit discussion I am reposting the richacl patchset for upstream inclusion. The patchset includes minimal changes required to implement a new acl model similar to NFSv4 ACL. The acl model selection is based on file system feature flag.

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 [1] (a number of examples can be found at http://acl.bestbits.at/richacl/examples.html).

[1] git://github.com/kvaneesh/richacl-tools.git master

To test richacl on ext4, create the file sytem with richacl feature flag (mkfs.ext4 -O richacl or tune2fs -O richacl). With richacl feature enabled using mount option "acl" will switch to using richacl instead of posixacl.

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

Previous posting of the patchset can be found at:
http://mid.gmane.org/[email protected]
"[PATCH -V8 00/26] New ACL format for better NFSv4 acl interoperability"

The complete patchset can also be found at:
https://github.com/kvaneesh/linux/commits/richacl-for-upstream

Since we are trying to get the changes merged upstream after a long time, I am posting this as V1 again. I Also dropped the Acked-by tag from David Howells <[email protected]> and J. Bruce Fields <[email protected]>. Please let me know if I can add them back again.

-aneesh