]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsd: Do not accept audit/alarm ACEs for the NFSv4 server
authorRick Macklem <rmacklem@FreeBSD.org>
Tue, 11 Jan 2022 17:40:07 +0000 (09:40 -0800)
committerRick Macklem <rmacklem@FreeBSD.org>
Tue, 11 Jan 2022 17:40:07 +0000 (09:40 -0800)
commita91a57846b5863b7ac4687cf202bb9496e028ab5
treef0531007c6591005d3a5414a666fd9b7a4f753a2
parent2754373f9ac8e73f8fdbba9df26ac03e4864576e
nfsd: Do not accept audit/alarm ACEs for the NFSv4 server

The UFS and ZFS file systems only support Allow/Deny ACEs
in the NFSv4 ACLs.  This patch does not allow the server
to parse Audit/Alarm ACEs.  The NFSv4 client is still
allowed to pase Audit/Alarm ACEs, since non-FreeBSD NFSv4
servers may use them.

This patch should not have a significant effect, since the
UFS and ZFS file systems will not handle these ACEs anyhow.
It simply serves as an additional "safety belt" for the
NFSv4 server.

MFC after: 2 weeks
sys/fs/nfs/nfs_commonacl.c
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfs_var.h
sys/fs/nfsclient/nfs_clrpcops.c
sys/fs/nfsserver/nfs_nfsdport.c