aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/mac.h7
-rw-r--r--sys/sys/mac_policy.h8
2 files changed, 9 insertions, 6 deletions
diff --git a/sys/sys/mac.h b/sys/sys/mac.h
index 895c7e305eb1..59c247a5f592 100644
--- a/sys/sys/mac.h
+++ b/sys/sys/mac.h
@@ -120,6 +120,8 @@ struct mount;
struct proc;
struct sockaddr;
struct socket;
+struct sysctl_oid;
+struct sysctl_req;
struct pipepair;
struct thread;
struct timespec;
@@ -281,9 +283,8 @@ int mac_check_system_reboot(struct ucred *cred, int howto);
int mac_check_system_settime(struct ucred *cred);
int mac_check_system_swapon(struct ucred *cred, struct vnode *vp);
int mac_check_system_swapoff(struct ucred *cred, struct vnode *vp);
-int mac_check_system_sysctl(struct ucred *cred, int *name,
- u_int namelen, void *old, size_t *oldlenp, int inkernel,
- void *new, size_t newlen);
+int mac_check_system_sysctl(struct ucred *cred, struct sysctl_oid *oidp,
+ void *arg1, int arg2, struct sysctl_req *req);
int mac_check_vnode_access(struct ucred *cred, struct vnode *vp,
int acc_mode);
int mac_check_vnode_chdir(struct ucred *cred, struct vnode *dvp);
diff --git a/sys/sys/mac_policy.h b/sys/sys/mac_policy.h
index f1d45b228ef7..90604381a3a8 100644
--- a/sys/sys/mac_policy.h
+++ b/sys/sys/mac_policy.h
@@ -63,6 +63,8 @@ struct mount;
struct pipepair;
struct sbuf;
struct socket;
+struct sysctl_oid;
+struct sysctl_req;
struct ucred;
struct uio;
struct vnode;
@@ -362,9 +364,9 @@ struct mac_policy_ops {
struct vnode *vp, struct label *label);
int (*mpo_check_system_swapoff)(struct ucred *cred,
struct vnode *vp, struct label *label);
- int (*mpo_check_system_sysctl)(struct ucred *cred, int *name,
- u_int namelen, void *old, size_t *oldlenp, int inkernel,
- void *new, size_t newlen);
+ int (*mpo_check_system_sysctl)(struct ucred *cred,
+ struct sysctl_oid *oidp, void *arg1, int arg2,
+ struct sysctl_req *req);
int (*mpo_check_vnode_access)(struct ucred *cred,
struct vnode *vp, struct label *label, int acc_mode);
int (*mpo_check_vnode_chdir)(struct ucred *cred,