o Capabilities cap_check() interface revised to remove _xxx, so rename
in p_cansched(). Also, replace '0' with 'NULL' for the ucred * pointer. Obtained from: TrustedBSD Project
This commit is contained in:
parent
62ec3f2fb0
commit
4df571b101
@ -1502,7 +1502,7 @@ p_cansched(struct proc *p1, struct proc *p2)
|
||||
return (0);
|
||||
|
||||
#ifdef CAPABILITIES
|
||||
if (!cap_check_xxx(0, p1, CAP_SYS_NICE, PRISON_ROOT))
|
||||
if (!cap_check(NULL, p1, CAP_SYS_NICE, PRISON_ROOT))
|
||||
return (0);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user