diff options
| author | 2018-02-19 08:59:52 +0000 | |
|---|---|---|
| committer | 2018-02-19 08:59:52 +0000 | |
| commit | 3e6763994aeb80a553b07ba51b1db2c4725c5c88 (patch) | |
| tree | 7c22e72ae7c90d9bbd118efba70226239e57d9a6 /sys/kern/sys_process.c | |
| parent | In x509.h rev. 1.29 2018/02/17 15:50:42, jsing@ provided (diff) | |
| download | wireguard-openbsd-3e6763994aeb80a553b07ba51b1db2c4725c5c88.tar.xz wireguard-openbsd-3e6763994aeb80a553b07ba51b1db2c4725c5c88.zip | |
Remove almost unused `flags' argument of suser().
The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.
No objection from millert@, ok tedu@, bluhm@
Diffstat (limited to 'sys/kern/sys_process.c')
| -rw-r--r-- | sys/kern/sys_process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 647b488af65..3bd7f44590c 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_process.c,v 1.78 2017/10/14 10:17:08 guenther Exp $ */ +/* $OpenBSD: sys_process.c,v 1.79 2018/02/19 08:59:52 mpi Exp $ */ /* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */ /*- @@ -361,14 +361,14 @@ ptrace_ctrl(struct proc *p, int req, pid_t pid, caddr_t addr, int data) */ if ((tr->ps_ucred->cr_ruid != p->p_ucred->cr_ruid || ISSET(tr->ps_flags, PS_SUGIDEXEC | PS_SUGID)) && - (error = suser(p, 0)) != 0) + (error = suser(p)) != 0) return (error); /* * (5.5) it's not a child of the tracing process. */ if (global_ptrace == 0 && !inferior(tr, p->p_p) && - (error = suser(p, 0)) != 0) + (error = suser(p)) != 0) return (error); /* @@ -812,7 +812,7 @@ process_checkioperm(struct proc *p, struct process *tr) if ((tr->ps_ucred->cr_ruid != p->p_ucred->cr_ruid || ISSET(tr->ps_flags, PS_SUGIDEXEC | PS_SUGID)) && - (error = suser(p, 0)) != 0) + (error = suser(p)) != 0) return (error); if ((tr->ps_pid == 1) && (securelevel > -1)) |
