1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00

Remove ps_argsopen check. It is was bogus in the past and was corrected

not quite well by me - if kern.ps_argsopen was set to 0, users weren't
permitted to see arguments of even own processes.
But kern.ps_argsopen is going away, so just remove this check and leave
security checks for p_cansee() function.
This commit is contained in:
Pawel Jakub Dawidek 2004-04-01 00:08:20 +00:00
parent c5b7c33bc8
commit 5e2c0c0b0e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127695

View File

@ -1111,11 +1111,6 @@ sysctl_kern_proc_args(SYSCTL_HANDLER_ARGS)
return (error);
}
if (!ps_argsopen) {
PROC_UNLOCK(p);
return (EPERM);
}
if (req->newptr && curproc != p) {
PROC_UNLOCK(p);
return (EPERM);