PERFORCE change 19974 for review
Robert Watson
rwatson at freebsd.org
Wed Oct 23 16:47:28 GMT 2002
http://perforce.freebsd.org/chv.cgi?CH=19974
Change 19974 by rwatson at rwatson_tislabs on 2002/10/23 09:46:36
mac_check_sysctl implementations for mac_none and mac_test.
Affected files ...
.. //depot/projects/trustedbsd/mac/sys/security/mac_none/mac_none.c#89 edit
.. //depot/projects/trustedbsd/mac/sys/security/mac_test/mac_test.c#63 edit
Differences ...
==== //depot/projects/trustedbsd/mac/sys/security/mac_none/mac_none.c#89 (text+ko) ====
@@ -621,6 +621,14 @@
}
static int
+mac_none_check_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_none_check_vnode_access(struct ucred *cred, struct vnode *vp,
struct label *label, mode_t flags)
{
@@ -1078,6 +1086,8 @@
(macop_t)mac_none_check_socket_relabel },
{ MAC_CHECK_SOCKET_VISIBLE,
(macop_t)mac_none_check_socket_visible },
+ { MAC_CHECK_SYSCTL,
+ (macop_t)mac_none_check_sysctl },
{ MAC_CHECK_VNODE_ACCESS,
(macop_t)mac_none_check_vnode_access },
{ MAC_CHECK_VNODE_CHDIR,
==== //depot/projects/trustedbsd/mac/sys/security/mac_test/mac_test.c#63 (text+ko) ====
@@ -1010,6 +1010,14 @@
}
static int
+mac_test_check_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_socket_relabel(struct ucred *cred, struct socket *socket,
struct label *socketlabel, struct label *newlabel)
{
@@ -1477,6 +1485,8 @@
(macop_t)mac_test_check_socket_relabel },
{ MAC_CHECK_SOCKET_VISIBLE,
(macop_t)mac_test_check_socket_visible },
+ { MAC_CHECK_SYSCTL,
+ (macop_t)mac_test_check_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