PERFORCE change 20377 for review

Robert Watson rwatson at freebsd.org
Tue Oct 29 21:54:45 GMT 2002


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

Change 20377 by rwatson at rwatson_tislabs on 2002/10/29 13:53:55

	acct(), reboot(), sysctl(), and kenv() bits.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/mac_test/mac_test.c#68 edit

Differences ...

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

@@ -896,6 +896,34 @@
 }
 
 static int
+mac_test_check_kenv_dump(struct ucred *cred)
+{
+
+	return (0);
+}
+
+static int
+mac_test_check_kenv_get(struct ucred *cred, char *name)
+{
+
+	return (0);
+}
+
+static int
+mac_test_check_kenv_set(struct ucred *cred, char *name, char *value)
+{
+
+	return (0);
+}
+
+static int
+mac_test_check_kenv_unset(struct ucred *cred, char *name)
+{
+
+	return (0);
+}
+
+static int
 mac_test_check_mount_stat(struct ucred *cred, struct mount *mp,
     struct label *mntlabel)
 {
@@ -1021,6 +1049,21 @@
 }
 
 static int
+mac_test_check_system_acct(struct ucred *cred, struct vnode *vp,
+    struct label *label)
+{
+
+	return (0);
+}
+
+static int
+mac_test_check_system_reboot(struct ucred *cred, int how)
+{
+
+	return (0);
+}
+
+static int
 mac_test_check_system_swapon(struct ucred *cred, struct vnode *vp,
     struct label *label)
 {
@@ -1029,6 +1072,14 @@
 }
 
 static int
+mac_test_check_system_sysctl(struct ucred *cred, int *name, u_int namelen,
+    void *old, size_t *oldlenp, int inkernel, void *new, size_t newlen)
+{
+
+	return (0);
+}
+
+static int
 mac_test_check_vnode_access(struct ucred *cred, struct vnode *vp,
     struct label *label, mode_t flags)
 {
@@ -1448,6 +1499,14 @@
 	    (macop_t)mac_test_check_ifnet_relabel },
 	{ MAC_CHECK_IFNET_TRANSMIT,
 	    (macop_t)mac_test_check_ifnet_transmit },
+	{ MAC_CHECK_KENV_DUMP,
+	    (macop_t)mac_test_check_kenv_dump },
+	{ MAC_CHECK_KENV_GET,
+	    (macop_t)mac_test_check_kenv_get },
+	{ MAC_CHECK_KENV_SET,
+	    (macop_t)mac_test_check_kenv_set },
+	{ MAC_CHECK_KENV_UNSET,
+	    (macop_t)mac_test_check_kenv_unset },
 	{ MAC_CHECK_MOUNT_STAT,
 	    (macop_t)mac_test_check_mount_stat },
 	{ MAC_CHECK_PIPE_IOCTL,
@@ -1480,8 +1539,14 @@
 	    (macop_t)mac_test_check_socket_relabel },
 	{ MAC_CHECK_SOCKET_VISIBLE,
 	    (macop_t)mac_test_check_socket_visible },
+	{ MAC_CHECK_SYSTEM_ACCT,
+	    (macop_t)mac_test_check_system_acct },
+	{ MAC_CHECK_SYSTEM_REBOOT,
+	    (macop_t)mac_test_check_system_reboot },
 	{ MAC_CHECK_SYSTEM_SWAPON,
 	    (macop_t)mac_test_check_system_swapon },
+	{ MAC_CHECK_SYSTEM_SYSCTL,
+	    (macop_t)mac_test_check_system_sysctl },
 	{ MAC_CHECK_VNODE_ACCESS,
 	    (macop_t)mac_test_check_vnode_access },
 	{ MAC_CHECK_VNODE_CHDIR,
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