Add NFSv4.2 POSIX ACL support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest17 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | Add definitions for the POSIX draft ACL attributesinclude/ | +37 | 0 replies | |
| 2/17 | Add a new function to acquire the POSIX draft ACLsfs/ fs/ | +35 | 0 replies | |
| 3/17 | Add a function to set POSIX ACLsfs/ fs/ | +34 | 0 replies | |
| 4/17 | Add support for encoding/decoding POSIX draft ACLsfs/ | +287 | 0 replies | |
| 5/17 | Add a check for both POSIX and NFSv4 ACLs being setfs/ | +14 | 0 replies | |
| 6/17 | Add na_dpaclerr and na_paclerr for file creationfs/ fs/ | +5 | 0 replies | |
| 7/17 | Add support for POSIX draft ACLs for file creationfs/ fs/ | +52 | 0 replies | |
| 8/17 | Add the arguments for decoding of POSIX ACLsfs/ | +3 | 0 replies | |
| 9/17 | Fix a couple of bugs in POSIX ACL decodingfs/ | +13 | 0 replies | |
| 10/17 | Improve correctness for the ACL_TRUEFORM attributefs/ | +5 | 0 replies | |
| 11/17 | Make sort_pacl_range() globalfs/ fs/ | +2 | 0 replies | |
| 12/17 | Call sort_pacl_range() for decoded POSIX draft ACLsfs/ | +10 | 0 replies | |
| 13/17 | Fix handling of POSIX ACLs with zero ACEsfs/ | +24 | 0 replies | |
| 14/17 | Fix handling of zero length ACLs for file creationfs/ | +27 | 0 replies | |
| 15/17 | Do not allow (N)VERIFY to check POSIX ACL attributesfs/ | +5 | 0 replies | |
| 16/17 | Set the POSIX ACL attributes supportedfs/ | +7 | 0 replies | |
| 17/17 | Change a bunch of function prefixes to nfsd42_fs/ fs/ fs/ +1 more | +22 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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