diff options
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_prot.c | 6 | ||||
| -rw-r--r-- | sys/netinet/tcp_subr.c | 4 | ||||
| -rw-r--r-- | sys/netinet/tcp_timewait.c | 4 | ||||
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 2 | ||||
| -rw-r--r-- | sys/sys/systm.h | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index b6fdd02a59d3..e9bbd87d5de1 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1359,7 +1359,7 @@ securelevel_ge(struct ucred *cr, int level) * u1 may equal u2, in which case only one reference is required */ int -u_cansee(struct ucred *u1, struct ucred *u2) +cr_cansee(struct ucred *u1, struct ucred *u2) { int error; @@ -1384,8 +1384,8 @@ int p_cansee(struct proc *p1, struct proc *p2) { - /* Wrap u_cansee() for all functionality. */ - return (u_cansee(p1->p_ucred, p2->p_ucred)); + /* Wrap cr_cansee() for all functionality. */ + return (cr_cansee(p1->p_ucred, p2->p_ucred)); } /*- diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 8896f3f400e2..b575415632fa 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -922,7 +922,7 @@ tcp_getcred(SYSCTL_HANDLER_ARGS) error = ENOENT; goto out; } - error = u_cansee(req->p->p_ucred, inp->inp_socket->so_cred); + error = cr_cansee(req->p->p_ucred, inp->inp_socket->so_cred); if (error) goto out; bzero(&xuc, sizeof(xuc)); @@ -978,7 +978,7 @@ tcp6_getcred(SYSCTL_HANDLER_ARGS) error = ENOENT; goto out; } - error = u_cansee(req->p->p_ucred, inp->inp_socket->so_cred); + error = cr_cansee(req->p->p_ucred, inp->inp_socket->so_cred); if (error) goto out; bzero(&xuc, sizeof(xuc)); diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 8896f3f400e2..b575415632fa 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -922,7 +922,7 @@ tcp_getcred(SYSCTL_HANDLER_ARGS) error = ENOENT; goto out; } - error = u_cansee(req->p->p_ucred, inp->inp_socket->so_cred); + error = cr_cansee(req->p->p_ucred, inp->inp_socket->so_cred); if (error) goto out; bzero(&xuc, sizeof(xuc)); @@ -978,7 +978,7 @@ tcp6_getcred(SYSCTL_HANDLER_ARGS) error = ENOENT; goto out; } - error = u_cansee(req->p->p_ucred, inp->inp_socket->so_cred); + error = cr_cansee(req->p->p_ucred, inp->inp_socket->so_cred); if (error) goto out; bzero(&xuc, sizeof(xuc)); diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 4af187015357..a9efeab33f45 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -641,7 +641,7 @@ udp_getcred(SYSCTL_HANDLER_ARGS) error = ENOENT; goto out; } - error = u_cansee(req->p->p_ucred, inp->inp_socket->so_cred); + error = cr_cansee(req->p->p_ucred, inp->inp_socket->so_cred); if (error) goto out; bzero(&xuc, sizeof(xuc)); diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 1f896a5c3514..7a43f0f32702 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -188,7 +188,7 @@ int suser __P((struct proc *)); int suser_td __P((struct thread *)); int suser_xxx __P((struct ucred *cred, struct proc *proc, int flag)); int suser_xxx_td __P((struct ucred *cred, struct thread *thread, int flag)); -int u_cansee __P((struct ucred *u1, struct ucred *u2)); +int cr_cansee __P((struct ucred *u1, struct ucred *u2)); char *getenv __P((const char *name)); int getenv_int __P((const char *name, int *data)); |
