diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-11-02 15:08:08 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-11-02 15:08:08 +0000 |
commit | 77a36a51e40c6c915c21ae76e94b65480239f504 (patch) | |
tree | 4f832d49a21f23fab4ee24df24d0aa6b935f50d7 /sys/kern/kern_prot.c | |
parent | b409e497bb6c974a7bda89a4f29ff1173132dbb9 (diff) | |
download | FreeBSD-src-77a36a51e40c6c915c21ae76e94b65480239f504.zip FreeBSD-src-77a36a51e40c6c915c21ae76e94b65480239f504.tar.gz |
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
Diffstat (limited to 'sys/kern/kern_prot.c')
-rw-r--r-- | sys/kern/kern_prot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 11917b4..6a17898 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -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 |