diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-10-25 12:34:14 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-10-25 12:34:14 +0000 |
commit | 8756317538371eb8709335e44bced5be817fbeec (patch) | |
tree | 09ab2e34d1c0854e04e44916dd25df475c7a1a35 /sys/nfsserver | |
parent | 2fd98af619b989e0cb105bb5b81e41d895fd8e20 (diff) | |
download | FreeBSD-src-8756317538371eb8709335e44bced5be817fbeec.zip FreeBSD-src-8756317538371eb8709335e44bced5be817fbeec.tar.gz |
Rename mac_associate_nfsd_label() to mac_proc_associate_nfsd(), and move
from mac_vfs.c to mac_process.c to join other functions that setup up
process labels for specific purposes. Unlike the two proc create calls,
this call is intended to run after creation when a process registers as
the NFS daemon, so remains an _associate_ call..
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/nfsserver')
-rw-r--r-- | sys/nfsserver/nfs_srvsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsserver/nfs_srvsock.c b/sys/nfsserver/nfs_srvsock.c index 053cffc..678191b 100644 --- a/sys/nfsserver/nfs_srvsock.c +++ b/sys/nfsserver/nfs_srvsock.c @@ -361,7 +361,7 @@ nfs_getreq(struct nfsrv_descript *nd, struct nfsd *nfsd, int has_header) nd->nd_cr->cr_groups[0] = nd->nd_cr->cr_rgid = nd->nd_cr->cr_svgid = fxdr_unsigned(gid_t, *tl++); #ifdef MAC - mac_associate_nfsd_label(nd->nd_cr); + mac_proc_associate_nfsd(nd->nd_cr); #endif len = fxdr_unsigned(int, *tl); if (len < 0 || len > RPCAUTH_UNIXGIDS) { |