Skip to content

New ACL format for better NFSv4 acl interoperability

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

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

Versions newest first

  1. v1 Latest16 patches 7 repliesIn review

Changes from V1 from the cover letter

1) Split the patches into smaller patches
2) Added extensive documentation to the patches.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16vfs: Hooks for more fine-grained directory permission checkingfs/namei.c include/linux/fs.h+69 -170 replies
2/16vfs: Add generic IS_ACL() test for acl supportfs/namei.c fs/nfs/nfs4proc.c include/linux/fs.h+11 -50 replies
3/16vfs: Add IS_RICHACL() test for richacl supportinclude/linux/fs.h+3 -10 replies
4/16richacl: In-memory representation and helper functionsfs/Kconfig fs/Makefile fs/richacl_base.c +1 more+361 -00 replies
5/16richacl: Permission mapping functionsfs/richacl_base.c include/linux/richacl.h+125 -00 replies
6/16richacl: Compute maximum file masks from an aclfs/richacl_base.c include/linux/richacl.h+127 -00 replies
7/16richacl: Update the file masks in chmod()fs/richacl_base.c include/linux/richacl.h+38 -00 replies
8/16richacl: Permission check algorithmfs/richacl_base.c include/linux/richacl.h+89 -00 replies
9/16richacl: Helper functions for implementing richacl inode operationsfs/Makefile fs/richacl_inode.c include/linux/richacl.h+216 -10 replies
10/16richacl: Create-time inheritancefs/richacl_base.c fs/richacl_inode.c include/linux/richacl.h+110 -00 replies
11/16richacl: Check if an acl is equivalent to a file modefs/richacl_base.c include/linux/richacl.h+49 -00 replies
12/16richacl: Automatic Inheritancefs/richacl_base.c fs/richacl_inode.c include/linux/richacl.h+41 -40 replies
13/16richacl: xattr mapping functionsfs/Makefile fs/richacl_xattr.c include/linux/richacl_xattr.h+204 -10 replies
14/16ext4: Use IS_POSIXACL() to check for POSIX ACL supportfs/ext4/acl.c fs/ext4/ext4.h fs/ext4/super.c+13 -200 replies
15/16ext4: Implement rich acl for ext4fs/ext4/Kconfig fs/ext4/Makefile fs/ext4/ext4.h +9 more+420 -60 replies
16/16ext4: Add temporary richacl mount option for ext4.fs/ext4/ext4.h fs/ext4/super.c+43 -121 reply

Reviews trailers per patch

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

Read the v1 thread

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

Hi,

The following set of patches implements 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.

Since posting the patches the previous time [0], Andreas Gruenbacher and I have worked on cleaning up the code, splitting things up into smaller pieces, and adding more documentation.

[0] http://article.gmane.org/gmane.comp.file-systems.ext4/17414

The patch set consists of three parts.

The first set of patches, posted as a follow up, contains the Rich ACL model and Ext4 implementation. The second set [1] contains mapping of Rich ACL to NFSv4 ACL (how to apply file mask to access mask) and implementation of Richacl ACL for NFS server and client. The third set [2] contains POSIX ACL to Rich ACL mapping and its ext4 usage.

[1] git://git.kernel.org/pub/scm/linux/kernel/git/agruen/linux-2.6-richacl.git richacl-upstream
[2] git://git.kernel.org/pub/scm/linux/kernel/git/agruen/linux-2.6-richacl.git richacl-fullset

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

[3] 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 V1:
1) Split the patches into smaller patches
2) Added extensive documentation to the patches.

-aneesh