Page MenuHomeFreeBSD

D40630.id123496.diff
No OneTemporary

D40630.id123496.diff

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 {
@@ -1351,7 +1351,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) {
@@ -1381,7 +1381,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;
@@ -1423,7 +1423,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)
{
return ((see_jail_proc != 0 || u1->cr_prison == u2->cr_prison ||
priv_check_cred(u1, PRIV_SEEJAILPROC) == 0) ? 0 : ESRCH);
@@ -1431,19 +1431,19 @@
/*
- * Helper for general cr_cansee*() functions to abide by system-wide
- * security.bsd.see_* policies.
+ * Helper for cr_cansee*() functions to abide by system-wide security.bsd.see_*
+ * policies.
*/
int
cr_bsd_visibility(struct ucred *u1, struct ucred *u2)
{
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);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 29, 2:49 PM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27362113
Default Alt Text
D40630.id123496.diff (2 KB)

Event Timeline