Date: Tue, 28 Oct 2008 09:12:13 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184401 - head/sys/security/mac_partition Message-ID: <200810280912.m9S9CDLh088602@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rwatson Date: Tue Oct 28 09:12:13 2008 New Revision: 184401 URL: http://svn.freebsd.org/changeset/base/184401 Log: Rename label_on_label() to partition_check(), which is far more suggestive as to its actual function. Obtained from: TrustedBSD Project MFC after: 3 days Modified: head/sys/security/mac_partition/mac_partition.c Modified: head/sys/security/mac_partition/mac_partition.c ============================================================================== --- head/sys/security/mac_partition/mac_partition.c Tue Oct 28 08:50:09 2008 (r184400) +++ head/sys/security/mac_partition/mac_partition.c Tue Oct 28 09:12:13 2008 (r184401) @@ -77,7 +77,7 @@ static int partition_slot; #define SLOT_SET(l, v) mac_label_set((l), partition_slot, (v)) static int -label_on_label(struct label *subject, struct label *object) +partition_check(struct label *subject, struct label *object) { if (partition_enabled == 0) @@ -133,7 +133,7 @@ partition_cred_check_visible(struct ucre { int error; - error = label_on_label(cr1->cr_label, cr2->cr_label); + error = partition_check(cr1->cr_label, cr2->cr_label); return (error == 0 ? 0 : ESRCH); } @@ -209,7 +209,7 @@ partition_inpcb_check_visible(struct ucr { int error; - error = label_on_label(cred->cr_label, inp->inp_cred->cr_label); + error = partition_check(cred->cr_label, inp->inp_cred->cr_label); return (error ? ENOENT : 0); } @@ -219,7 +219,7 @@ partition_proc_check_debug(struct ucred { int error; - error = label_on_label(cred->cr_label, p->p_ucred->cr_label); + error = partition_check(cred->cr_label, p->p_ucred->cr_label); return (error ? ESRCH : 0); } @@ -229,7 +229,7 @@ partition_proc_check_sched(struct ucred { int error; - error = label_on_label(cred->cr_label, p->p_ucred->cr_label); + error = partition_check(cred->cr_label, p->p_ucred->cr_label); return (error ? ESRCH : 0); } @@ -240,7 +240,7 @@ partition_proc_check_signal(struct ucred { int error; - error = label_on_label(cred->cr_label, p->p_ucred->cr_label); + error = partition_check(cred->cr_label, p->p_ucred->cr_label); return (error ? ESRCH : 0); } @@ -265,7 +265,7 @@ partition_socket_check_visible(struct uc { int error; - error = label_on_label(cred->cr_label, so->so_cred->cr_label); + error = partition_check(cred->cr_label, so->so_cred->cr_label); return (error ? ENOENT : 0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810280912.m9S9CDLh088602>