summaryrefslogtreecommitdiff
path: root/fs/cramfs
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-01-11 19:46:30 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2023-01-11 23:32:49 +0300
commit1cb925c0863efcd8ed12ac3ac4a902386e6779f7 (patch)
tree3c925fdfda6f544fdaa221daae5f24865a4e69b3 /fs/cramfs
parentf27c942e3e3e80475cc463b5fc373f280d85b926 (diff)
downloadlinux-1cb925c0863efcd8ed12ac3ac4a902386e6779f7.tar.xz
nsfs: add compat ioctl handler
As all parameters and return values of the ioctls have the same representation on both 32bit and 64bit we can reuse the normal ioctl handler for the compat handler via compat_ptr_ioctl(). All nsfs ioctls return a plain "int" filedescriptor which is a signed 4-byte integer type on both 32bit and 64bit. The only parameter taken is by NS_GET_OWNER_UID and is a pointer to a "uid_t" which is a 4-byte unsigned integer type on both 32bit and 64bit. Fixes: 6786741dbf99 ("nsfs: add ioctl to get an owning user namespace for ns file descriptor") Reported-by: Karel Zak <kzak@redhat.com> Link: https://github.com/util-linux/util-linux/pull/1924#issuecomment-1344133656 Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cramfs')
0 files changed, 0 insertions, 0 deletions