summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_seeotheruids/mac_seeotheruids.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-10-29 13:33:06 +0000
committerrwatson <rwatson@FreeBSD.org>2007-10-29 13:33:06 +0000
commita4265719055fe445116eb2743b6aacf518bb1a8d (patch)
treeb5d3ede5fbbf1cb40c13deb6bb8e406ce58b639e /sys/security/mac_seeotheruids/mac_seeotheruids.c
parent17e940f736d56194ae75e4a2963c775a59f0a3f6 (diff)
downloadFreeBSD-src-a4265719055fe445116eb2743b6aacf518bb1a8d.zip
FreeBSD-src-a4265719055fe445116eb2743b6aacf518bb1a8d.tar.gz
Resort TrustedBSD MAC Framework policy entry point implementations and
declarations to match the object, operation sort order in the framework itself. Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/mac_seeotheruids/mac_seeotheruids.c')
-rw-r--r--sys/security/mac_seeotheruids/mac_seeotheruids.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/security/mac_seeotheruids/mac_seeotheruids.c b/sys/security/mac_seeotheruids/mac_seeotheruids.c
index ae88ac3..ac7880d 100644
--- a/sys/security/mac_seeotheruids/mac_seeotheruids.c
+++ b/sys/security/mac_seeotheruids/mac_seeotheruids.c
@@ -126,32 +126,32 @@ seeotheruids_check(struct ucred *cr1, struct ucred *cr2)
}
static int
-seeotheruids_cred_check_visible(struct ucred *cr1, struct ucred *cr2)
+seeotheruids_proc_check_debug(struct ucred *cred, struct proc *p)
{
- return (seeotheruids_check(cr1, cr2));
+ return (seeotheruids_check(cred, p->p_ucred));
}
static int
-seeotheruids_proc_check_signal(struct ucred *cred, struct proc *p,
- int signum)
+seeotheruids_proc_check_sched(struct ucred *cred, struct proc *p)
{
return (seeotheruids_check(cred, p->p_ucred));
}
static int
-seeotheruids_proc_check_sched(struct ucred *cred, struct proc *p)
+seeotheruids_proc_check_signal(struct ucred *cred, struct proc *p,
+ int signum)
{
return (seeotheruids_check(cred, p->p_ucred));
}
static int
-seeotheruids_proc_check_debug(struct ucred *cred, struct proc *p)
+seeotheruids_cred_check_visible(struct ucred *cr1, struct ucred *cr2)
{
- return (seeotheruids_check(cred, p->p_ucred));
+ return (seeotheruids_check(cr1, cr2));
}
static int
@@ -164,10 +164,10 @@ seeotheruids_socket_check_visible(struct ucred *cred, struct socket *so,
static struct mac_policy_ops seeotheruids_ops =
{
- .mpo_cred_check_visible = seeotheruids_cred_check_visible,
.mpo_proc_check_debug = seeotheruids_proc_check_debug,
.mpo_proc_check_sched = seeotheruids_proc_check_sched,
.mpo_proc_check_signal = seeotheruids_proc_check_signal,
+ .mpo_cred_check_visible = seeotheruids_cred_check_visible,
.mpo_socket_check_visible = seeotheruids_socket_check_visible,
};
OpenPOWER on IntegriCloud