Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2002 05:40:37 -0700 (PDT)
From:      Brian Feldman <green@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 18975 for review
Message-ID:  <200210091240.g99Ceb2p037088@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/p4db/chv.cgi?CH=18975

Change 18975 by green@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@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210091240.g99Ceb2p037088>