PERFORCE change 79660 for review

Robert Watson rwatson at FreeBSD.org
Wed Jul 6 15:43:05 GMT 2005


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

Change 79660 by rwatson at rwatson_zoo on 2005/07/06 15:42:28

	Export mac_mount_label_alloc(), mac_mount_label_free(), and 
	mac_externalize_mount_label()  outside of the MAC Framework so that
	it can be used by the nmount(2) code.  We may wish to expose less of
	this once we've made it work as desired.  These changes are required
	for the vfs_mount.c stubbed out nmount() label code to compile (and
	work?).

Affected files ...

.. //depot/projects/trustedbsd/sebsd/sys/security/mac/mac_internal.h#14 edit
.. //depot/projects/trustedbsd/sebsd/sys/sys/mac.h#21 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/sys/security/mac/mac_internal.h#14 (text+ko) ====

@@ -108,8 +108,6 @@
  * the namespaces, etc, should work for these, so for now, sort by
  * object type.
  */
-struct label	*mac_mount_label_alloc(void);
-void		 mac_mount_label_free(struct label *label);
 struct label	*mac_pipe_label_alloc(void);
 void		 mac_pipe_label_free(struct label *label);
 struct label	*mac_socket_label_alloc(int flag);
@@ -125,7 +123,6 @@
 
 int	mac_externalize_mount_label(struct label *label, char *elements,
 	    char *outbuf, size_t outbuflen, int flags);
-int	mac_internalize_mount_label(struct label *label, char *string);
 
 void	mac_copy_pipe_label(struct label *src, struct label *dest);
 int	mac_externalize_pipe_label(struct label *label, char *elements,

==== //depot/projects/trustedbsd/sebsd/sys/sys/mac.h#21 (text+ko) ====

@@ -191,6 +191,10 @@
 
 struct label	*mac_cred_label_alloc(void);
 void		 mac_cred_label_free(struct label *label);
+struct label	*mac_mount_label_alloc(void);
+void		 mac_mount_label_free(struct label *label);
+int		 mac_internalize_mount_label(struct label *label,
+		    char *string);
 struct label	*mac_vnode_label_alloc(void);
 void		 mac_vnode_label_free(struct label *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