PERFORCE change 18975 for review

Brian Feldman green at freebsd.org
Wed Oct 9 12:40:37 GMT 2002


http://perforce.freebsd.org/p4db/chv.cgi?CH=18975

Change 18975 by green at green_laptop_2 on 2002/10/09 05:40:08

	Add sebsd_copy_vnode_label() to make getfmac work correctly.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/sebsd/sebsd.c#35 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/sebsd/sebsd.c#35 (text+ko) ====

@@ -1076,6 +1076,13 @@
 	return (sebsd_externalize_sid(vsec->sid, element, claimed));
 }
 
+static void
+sebsd_copy_vnode_label(struct label *src, struct label *dest)
+{
+	*(struct vnode_security_struct *)SLOT(dest) =
+	    *(struct vnode_security_struct *)SLOT(src);
+}
+
 /*
  * Initialize the SEBSD security server after the root partition has
  * been mounted; policy is located on root partition.
@@ -1108,6 +1115,9 @@
 	{ MAC_DESTROY_VNODE_LABEL,
 	    (macop_t)sebsd_destroy_vnode_label },
 
+	/* Copy labels */
+	{ MAC_COPY_VNODE_LABEL, (macop_t)sebsd_copy_vnode_label },
+
 	/* In/Out */
 	{ MAC_EXTERNALIZE_CRED_LABEL, sebsd_externalize_cred_label },
 	{ MAC_EXTERNALIZE_VNODE_LABEL, sebsd_externalize_vnode_label },
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