diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -93,9 +93,9 @@ static void crsetgroups_locked(struct ucred *cr, int ngrp, gid_t *groups); -static int cr_canseeotheruids(struct ucred *u1, struct ucred *u2); -static int cr_canseeothergids(struct ucred *u1, struct ucred *u2); -static int cr_canseejailproc(struct ucred *u1, struct ucred *u2); +static int cr_seeotheruids(struct ucred *u1, struct ucred *u2); +static int cr_seeothergids(struct ucred *u1, struct ucred *u2); +static int cr_seejailproc(struct ucred *u1, struct ucred *u2); #ifndef _SYS_SYSPROTO_H_ struct getpid_args { @@ -1360,7 +1360,7 @@ * u1 may equal u2, in which case only one reference is required */ static int -cr_canseeotheruids(struct ucred *u1, struct ucred *u2) +cr_seeotheruids(struct ucred *u1, struct ucred *u2) { if (!see_other_uids && u1->cr_ruid != u2->cr_ruid) { @@ -1390,7 +1390,7 @@ * u1 may equal u2, in which case only one reference is required */ static int -cr_canseeothergids(struct ucred *u1, struct ucred *u2) +cr_seeothergids(struct ucred *u1, struct ucred *u2) { int i, match; @@ -1432,7 +1432,7 @@ * u1 may equal u2, in which case only one reference is required */ static int -cr_canseejailproc(struct ucred *u1, struct ucred *u2) +cr_seejailproc(struct ucred *u1, struct ucred *u2) { if (see_jail_proc != 0 || /* Policy deactivated. */ u1->cr_prison == u2->cr_prison || /* Same jail. */ @@ -1453,11 +1453,11 @@ { int error; - if ((error = cr_canseeotheruids(u1, u2))) + if ((error = cr_seeotheruids(u1, u2))) return (error); - if ((error = cr_canseeothergids(u1, u2))) + if ((error = cr_seeothergids(u1, u2))) return (error); - if ((error = cr_canseejailproc(u1, u2))) + if ((error = cr_seejailproc(u1, u2))) return (error); return (0); }