diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-09-02 09:59:33 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-09-02 09:59:33 +0000 |
commit | 64e850e184767eda04e48493f3f3cdb82f9c56b5 (patch) | |
tree | d3c4775d017fc1ad44026cab31dc4480bbc9875e /sys/i386 | |
parent | 3d2ad995c730949c9d7c5298fdc1047cc68b4c4e (diff) | |
download | FreeBSD-src-64e850e184767eda04e48493f3f3cdb82f9c56b5.zip FreeBSD-src-64e850e184767eda04e48493f3f3cdb82f9c56b5.tar.gz |
In userland_sysctl(), call useracc() with the actual newlen value to be
used, rather than the one passed via 'req', which may not reflect a
rewrite. This call to useracc() is redundant to validation performed by
later copyin()/copyout() calls, so there isn't a security issue here,
but this could technically lead to excessive validation of addresses if
the length in newlen is shorter than req.newlen.
Approved by: re (kensmith)
Reviewed by: jhb
Submitted by: Constantine A. Murenin <cnst+freebsd@bugmail.mojo.ru>
Sponsored by: Google Summer of Code 2007
Diffstat (limited to 'sys/i386')
0 files changed, 0 insertions, 0 deletions