]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move 32-bit compat support for FIODGNAME to the right place.
authorBrooks Davis <brooks@FreeBSD.org>
Wed, 3 Oct 2018 20:39:48 +0000 (20:39 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Wed, 3 Oct 2018 20:39:48 +0000 (20:39 +0000)
commit23f2e22802fcf2ec666a31c5727004107b596bd3
tree9022871dfe85379ce55dbad1af3d45f4755af93e
parenta669177576f30de41c8959959012f963254ebe19
Move 32-bit compat support for FIODGNAME to the right place.

ioctl(2) commands only have meaning in the context of a file descriptor
so translating them in the syscall layer is incorrect.

The new handler users an accessor to retrieve/construct a pointer from
the last member of the passed structure and relies on type punning to
access the other member which requires no translation.

Reviewed by: kib
Approved by: re (rgrimes, gjb)
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Review: https://reviews.freebsd.org/D17388
sys/compat/freebsd32/freebsd32_ioctl.c
sys/compat/freebsd32/freebsd32_ioctl.h
sys/fs/devfs/devfs_vnops.c