Skip to content

Add NFSv4.2 POSIX ACL support

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17Add definitions for the POSIX draft ACL attributesinclude/linux/nfs4.h+37 -00 replies
2/17Add a new function to acquire the POSIX draft ACLsfs/nfsd/acl.h fs/nfsd/nfs4acl.c+35 -00 replies
3/17Add a function to set POSIX ACLsfs/nfsd/nfs4proc.c fs/nfsd/xdr4.h+34 -00 replies
4/17Add support for encoding/decoding POSIX draft ACLsfs/nfsd/nfs4xdr.c+287 -50 replies
5/17Add a check for both POSIX and NFSv4 ACLs being setfs/nfsd/nfs4proc.c+14 -80 replies
6/17Add na_dpaclerr and na_paclerr for file creationfs/nfsd/vfs.c fs/nfsd/vfs.h+5 -30 replies
7/17Add support for POSIX draft ACLs for file creationfs/nfsd/nfs4proc.c fs/nfsd/xdr4.h+52 -90 replies
8/17Add the arguments for decoding of POSIX ACLsfs/nfsd/nfs4xdr.c+3 -30 replies
9/17Fix a couple of bugs in POSIX ACL decodingfs/nfsd/nfs4xdr.c+13 -70 replies
10/17Improve correctness for the ACL_TRUEFORM attributefs/nfsd/nfs4xdr.c+5 -10 replies
11/17Make sort_pacl_range() globalfs/nfsd/acl.h fs/nfsd/nfs4acl.c+2 -10 replies
12/17Call sort_pacl_range() for decoded POSIX draft ACLsfs/nfsd/nfs4xdr.c+10 -00 replies
13/17Fix handling of POSIX ACLs with zero ACEsfs/nfsd/nfs4proc.c+24 -60 replies
14/17Fix handling of zero length ACLs for file creationfs/nfsd/vfs.c+27 -70 replies
15/17Do not allow (N)VERIFY to check POSIX ACL attributesfs/nfsd/nfs4proc.c+5 -00 replies
16/17Set the POSIX ACL attributes supportedfs/nfsd/nfsd.h+7 -10 replies
17/17Change a bunch of function prefixes to nfsd42_fs/nfsd/acl.h fs/nfsd/nfs4acl.c fs/nfsd/nfs4proc.c +1 more+22 -220 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/17] Add NFSv4.2 POSIX ACL support

From: Rick Macklem <[email protected]>

The Internet draft "POSIX Draft ACL support for Network File System Version 4, Minor Version2"
https://datatracker.ietf.org/doc/draft-ietf-nfsv4-posix-acls/
describes an extension to NFSv4.2 so that POSIX draft ACLs can get acquired and set directly, without using the loosey NFSv4->POSIX draft mapping algorith. It extends the protocol with four new attributes.

This patch series implements the server side of this extension for the knfsd. It is analogous to the NFSACL protocol used as a sideband protocol for NFSv3 and allows the ACLs to be acquired/set be getfacl(1)/setfacl(1).

The current implementation does not support the "per file" scope, where individual file objects store/use either an NFSv4 ACL or POSIX draft ACL and assumes POSIX draft ACLs are supported for an entire file system, if support for POSIX draft ACLs is indicated.

Rick Macklem (17):
Add definitions for the POSIX draft ACL attributes Add a new function to acquire the POSIX draft ACLs Add a function to set POSIX ACLs
Add support for encoding/decoding POSIX draft ACLs Add a check for both POSIX and NFSv4 ACLs being set Add na_dpaclerr and na_paclerr for file creation Add support for POSIX draft ACLs for file creation Add the arguments for decoding of POSIX ACLs Fix a couple of bugs in POSIX ACL decoding Improve correctness for the ACL_TRUEFORM attribute Make sort_pacl_range() global
Call sort_pacl_range() for decoded POSIX draft ACLs Fix handling of POSIX ACLs with zero ACEs Fix handling of zero length ACLs for file creation Do not allow (N)VERIFY to check POSIX ACL attributes Set the POSIX ACL attributes supported Change a bunch of function prefixes to nfsd42_

 fs/nfsd/acl.h        |   3 +
 fs/nfsd/nfs4acl.c    |  35 ++++-
 fs/nfsd/nfs4proc.c   | 126 +++++++++++++++--
 fs/nfsd/nfs4xdr.c    | 312 ++++++++++++++++++++++++++++++++++++++++++-
 fs/nfsd/nfsd.h       |   8 +-
 fs/nfsd/vfs.c        |  34 ++++-
 fs/nfsd/vfs.h        |   2 +
 fs/nfsd/xdr4.h       |   6 +
 include/linux/nfs4.h |  37 +++++
 9 files changed, 536 insertions(+), 27 deletions(-)
Signature · 1 line
2.49.0