PERFORCE change 20375 for review

Robert Watson rwatson at freebsd.org
Tue Oct 29 21:48:36 GMT 2002


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

Change 20375 by rwatson at rwatson_tislabs on 2002/10/29 13:48:11

	Stubs for the acct(2) check, as well as kenv(2) interfaces.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/mac_none/mac_none.c#94 edit

Differences ...

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

@@ -500,6 +500,34 @@
 }
 
 static int
+mac_none_check_kenv_dump(struct ucred *cred)
+{
+
+	return (0);
+}
+
+static int
+mac_none_check_kenv_get(struct ucred *cred, char *name)
+{
+
+	return (0);
+}
+
+static int
+mac_none_check_kenv_set(struct ucred *cred, char *name, char *value)
+{
+
+	return (0);
+}
+
+static int
+mac_none_check_kenv_unset(struct ucred *cred, char *name)
+{
+
+	return (0);
+}
+
+static int
 mac_none_check_mount_stat(struct ucred *cred, struct mount *mp,
     struct label *mntlabel)
 {
@@ -625,6 +653,14 @@
 }
 
 static int
+mac_none_check_system_acct(struct ucred *cred, struct vnode *vp,
+    struct label *vlabel)
+{
+
+	return (0);
+}
+
+static int
 mac_none_check_system_reboot(struct ucred *cred, int how)
 {
 
@@ -1065,6 +1101,14 @@
 	    (macop_t)mac_none_check_ifnet_relabel },
 	{ MAC_CHECK_IFNET_TRANSMIT,
 	    (macop_t)mac_none_check_ifnet_transmit },
+	{ MAC_CHECK_KENV_DUMP,
+	    (macop_t)mac_none_check_kenv_dump },
+	{ MAC_CHECK_KENV_GET,
+	    (macop_t)mac_none_check_kenv_get },
+	{ MAC_CHECK_KENV_SET,
+	    (macop_t)mac_none_check_kenv_set },
+	{ MAC_CHECK_KENV_UNSET,
+	    (macop_t)mac_none_check_kenv_unset },
 	{ MAC_CHECK_MOUNT_STAT,
 	    (macop_t)mac_none_check_mount_stat },
 	{ MAC_CHECK_PIPE_IOCTL,
@@ -1097,6 +1141,8 @@
 	    (macop_t)mac_none_check_socket_relabel },
 	{ MAC_CHECK_SOCKET_VISIBLE,
 	    (macop_t)mac_none_check_socket_visible },
+	{ MAC_CHECK_SYSTEM_ACCT,
+	    (macop_t)mac_none_check_system_acct },
 	{ MAC_CHECK_SYSTEM_REBOOT,
 	    (macop_t)mac_none_check_system_reboot },
 	{ MAC_CHECK_SYSTEM_SWAPON,
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