diff options
author | mjg <mjg@FreeBSD.org> | 2014-10-04 08:08:56 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2014-10-04 08:08:56 +0000 |
commit | c0fe514f041daa8ac93204d67c4261bb177c2668 (patch) | |
tree | ede37a195fc624ef66a60c214495b63c37f05678 /contrib/netbsd-tests/lib/libc/stdlib/t_random.c | |
parent | 64595536f12e0c6835b51d11556e9fda8cc7596d (diff) | |
download | FreeBSD-src-c0fe514f041daa8ac93204d67c4261bb177c2668.zip FreeBSD-src-c0fe514f041daa8ac93204d67c4261bb177c2668.tar.gz |
Plug capability races.
fp and appropriate capability lookups were not atomic, which could result in
improper capabilities being checked.
This could result either in protection bypass or in a spurious ENOTCAPABLE.
Make fp + capability check atomic with the help of sequence counters.
Reviewed by: kib
MFC after: 3 weeks
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/stdlib/t_random.c')
0 files changed, 0 insertions, 0 deletions