Protect process environment variables with p_candebug().

Discussed with:	jilles, kib, rwatson
MFC after:	2 weeks
This commit is contained in:
trociny 2011-12-04 21:43:13 +00:00
parent 576c5dd3ba
commit 783806918a

View File

@ -967,7 +967,7 @@ linprocfs_doprocenviron(PFS_FILL_ARGS)
int ret;
PROC_LOCK(p);
if ((ret = p_cansee(td, p)) != 0) {
if ((ret = p_candebug(td, p)) != 0) {
PROC_UNLOCK(p);
return (ret);
}