MuYao Luo would like Shangzhong Zhu to review this change.

View Change

Add functions for encoding and decoding POSIX ACLs and the GETACL and SETACL RPCs.

The actual access decisions are performed using the ACCESS RPC which is part of NFSv3 proper, and is independent of acls.
The GETACL and SETACL RPCs are mainly used by tools like getfacl and setfacl.In addition, for files created inside directories that have a default acl,SETACL is used at file create time to implement the POSIX ACL file create semantics.

Change-Id: I5b73caf733c54003370abe81200f9ac5cc8b6abc
Signed-off-by: Luo Muyao <luo.muyao@zte.com.cn>
Signed-off-by: Shangzhong Zhu <zhu.shangzhong@zte.com.cn>
---
M src/Protocols/NFS/nfs_proto_tools.c
A src/Protocols/NFSACL/nfsacl_Null.c
A src/Protocols/NFSACL/nfsacl_getacl.c
A src/Protocols/NFSACL/nfsacl_setacl.c
M src/include/nfs_proto_tools.h
5 files changed, 794 insertions(+), 0 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/59/493359/1

To view, visit change 493359. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I5b73caf733c54003370abe81200f9ac5cc8b6abc
Gerrit-Change-Number: 493359
Gerrit-PatchSet: 1
Gerrit-Owner: MuYao Luo <luo.muyao@zte.com.cn>
Gerrit-Reviewer: Shangzhong Zhu <zhu.shangzhong@zte.com.cn>
Gerrit-MessageType: newchange