Skip to content

Allow nfs4-acl-tools to access 'dacl' and 'sacl'

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6libnfs4acl: Add helpers to set the dacl and saclinclude/libacl_nfs4.h libnfs4acl/Makefile libnfs4acl/nfs4_getacl.c +1 more+143 -00 replies
2/6libnfs4acl: Add support for the NFS4.1 ACE_INHERITED_ACE flaginclude/libacl_nfs4.h include/nfs4.h libnfs4acl/nfs4_ace_from_string.c +2 more+8 -00 replies
3/6The NFSv41 DACL and SACL prepend an extra field to the aclinclude/libacl_nfs4.h include/nfs4.h libnfs4acl/acl_nfs4_copy_acl.c +5 more+57 -160 replies
4/6nfs4_getacl: Add support for the --dacl and --sacl optionsnfs4_getfacl/nfs4_getfacl.c+65 -70 replies
5/6nfs4_setacl: Add support for the --dacl and --sacl optionsnfs4_setfacl/nfs4_setfacl.c+64 -30 replies
6/6Edit manpages to document the new --dacl, --sacl and inheritance featuresman/man1/nfs4_getfacl.1 man/man1/nfs4_setfacl.1 man/man5/nfs4_acl.5+32 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] Allow nfs4-acl-tools to access 'dacl' and 'sacl'

From: Trond Myklebust <[email protected]>

The following patch set matches the kernel patches to allow access to the NFSv4.1 'dacl' and 'sacl' attributes. The current patches are very basic, adding support for encoding/decoding the new attributes only when the user specifies the '--dacl' or '--sacl' flags on the command line.

Trond Myklebust (6):
libnfs4acl: Add helpers to set the dacl and sacl
libnfs4acl: Add support for the NFS4.1 ACE_INHERITED_ACE flag The NFSv41 DACL and SACL prepend an extra field to the acl
nfs4_getacl: Add support for the --dacl and --sacl options
nfs4_setacl: Add support for the --dacl and --sacl options Edit manpages to document the new --dacl, --sacl and inheritance
features

 include/libacl_nfs4.h             | 18 +++++++
 include/nfs4.h                    |  6 +++
 libnfs4acl/Makefile               |  2 +
 libnfs4acl/acl_nfs4_copy_acl.c    |  2 +
 libnfs4acl/acl_nfs4_xattr_load.c  | 14 +++++-
 libnfs4acl/acl_nfs4_xattr_pack.c  | 22 ++++++--
 libnfs4acl/nfs4_ace_from_string.c |  3 ++
 libnfs4acl/nfs4_get_ace_flags.c   |  2 +
 libnfs4acl/nfs4_getacl.c          | 84 +++++++++++++++++++++++++++++++
 libnfs4acl/nfs4_new_acl.c         |  1 +
 libnfs4acl/nfs4_setacl.c          | 49 ++++++++++++++++++
 man/man1/nfs4_getfacl.1           | 14 ++++++
 man/man1/nfs4_setfacl.1           |  8 +++
 man/man5/nfs4_acl.5               | 10 ++++
 nfs4_getfacl/nfs4_getfacl.c       | 73 ++++++++++++++++++++++++---
 nfs4_setfacl/nfs4_setfacl.c       | 67 ++++++++++++++++++++++--
 16 files changed, 359 insertions(+), 16 deletions(-)
 create mode 100644 libnfs4acl/nfs4_getacl.c
 create mode 100644 libnfs4acl/nfs4_setacl.c
Signature · 1 line
2.36.1