PERFORCE change 89431 for review
Christian S.J. Peron
csjp at FreeBSD.org
Mon Jan 9 19:56:43 GMT 2006
http://perforce.freebsd.org/chv.cgi?CH=89431
Change 89431 by csjp at csjp_xor on 2006/01/09 19:55:45
Teach NFS code about the mac_associate_nfsd_label. This entry point
will get executed while setting up the ucred for NFS related operations.
Affected files ...
.. //depot/projects/trustedbsd/mac/sys/nfsserver/nfs_srvsock.c#22 edit
Differences ...
==== //depot/projects/trustedbsd/mac/sys/nfsserver/nfs_srvsock.c#22 (text+ko) ====
@@ -39,10 +39,13 @@
* Socket operations for use by nfs
*/
+#include "opt_mac.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/lock.h>
+#include <sys/mac.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/mount.h>
@@ -362,6 +365,9 @@
}
nfsm_adv(nfsm_rndup(len));
tl = nfsm_dissect_nonblock(u_int32_t *, 3 * NFSX_UNSIGNED);
+#ifdef MAC
+ mac_associate_nfsd_label(nd->nd_cr);
+#endif
nd->nd_cr->cr_uid = nd->nd_cr->cr_ruid =
nd->nd_cr->cr_svuid = fxdr_unsigned(uid_t, *tl++);
nd->nd_cr->cr_groups[0] = nd->nd_cr->cr_rgid =
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list