Date: Wed, 6 Jul 2005 15:43:05 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 79660 for review Message-ID: <200507061543.j66Fh5fv018563@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=79660 Change 79660 by rwatson@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507061543.j66Fh5fv018563>