Page MenuHomeFreeBSD

D40629.id124766.diff
No OneTemporary

D40629.id124766.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,6 +93,10 @@
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);
+
#ifndef _SYS_SYSPROTO_H_
struct getpid_args {
int dummy;
@@ -1355,7 +1359,7 @@
* References: *u1 and *u2 must not change during the call
* u1 may equal u2, in which case only one reference is required
*/
-int
+static int
cr_canseeotheruids(struct ucred *u1, struct ucred *u2)
{
@@ -1385,7 +1389,7 @@
* References: *u1 and *u2 must not change during the call
* u1 may equal u2, in which case only one reference is required
*/
-int
+static int
cr_canseeothergids(struct ucred *u1, struct ucred *u2)
{
int i, match;
@@ -1427,7 +1431,7 @@
* References: *u1 and *u2 must not change during the call
* u1 may equal u2, in which case only one reference is required
*/
-int
+static int
cr_canseejailproc(struct ucred *u1, struct ucred *u2)
{
if (see_jail_proc != 0 || /* Policy deactivated. */
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -1162,9 +1162,6 @@
int cr_bsd_visible(struct ucred *u1, struct ucred *u2);
int cr_cansee(struct ucred *u1, struct ucred *u2);
int cr_canseesocket(struct ucred *cred, struct socket *so);
-int cr_canseeothergids(struct ucred *u1, struct ucred *u2);
-int cr_canseeotheruids(struct ucred *u1, struct ucred *u2);
-int cr_canseejailproc(struct ucred *u1, struct ucred *u2);
int cr_cansignal(struct ucred *cred, struct proc *proc, int signum);
int enterpgrp(struct proc *p, pid_t pgid, struct pgrp *pgrp,
struct session *sess);

File Metadata

Mime Type
text/plain
Expires
Tue, Jun 30, 9:59 PM (7 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34525621
Default Alt Text
D40629.id124766.diff (1 KB)

Event Timeline