mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
o Limit process information leakage by introducing a p_can(...P_CAN_SEE...)
in rtprio()'s RTP_LOOKIP implementation. Obtained from: TrustedBSD Project
This commit is contained in:
parent
cdf6f0b1ae
commit
d34f8d3030
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75450
@ -264,6 +264,8 @@ rtprio(curp, uap)
|
||||
|
||||
switch (uap->function) {
|
||||
case RTP_LOOKUP:
|
||||
if ((error = p_can(curp, p, P_CAN_SEE, NULL)))
|
||||
return (error);
|
||||
pri_to_rtp(&p->p_pri, &rtp);
|
||||
return (copyout(&rtp, uap->rtp, sizeof(struct rtprio)));
|
||||
case RTP_SET:
|
||||
|
Loading…
Reference in New Issue
Block a user