ENOSYS(1) | User Commands | ENOSYS(1) |
NAME
enosys - utility to make syscalls fail with ENOSYS
SYNOPSIS
enosys [--syscall|-s syscall] command
DESCRIPTION
enosys is a simple command to execute a child process for which certain syscalls fail with errno ENOSYS.
It can be used to test the behavior of applications in the face of missing syscalls as would happen when running on old kernels.
OPTIONS
-s, --syscall
-i, --ioctl
-l, --list
-m, --list-ioctl
-d, --dump[=file]
The dump can for example be used by setpriv --seccomp-filter.
-h, --help
-V, --version
EXAMPLES
# fail syscall "fallocate" with ENOSYS enosys -s fallocate ...
# fail syscall "fallocate" with ENOMEM enosys -s fallocate:ENOMEM ...
# fail syscall "fallocate" with value 12/ENOMEM enosys -s fallocate:12 ...
# fail ioctl FIOCLEX with ENOTTY enosys -i FIOCLEX ...
# fail ioctl FIOCLEX with ENOMEM enosys -i FIOCLEX:ENOMEM ...
# fail ioctl FIOCLEX with value 12/ENOMEM enosys -i FIOCLEX:12 ...
EXIT STATUS
enosys exits with the status code of the executed process. The following values have special meanings:
1
2
AUTHORS
Thomas Weißschuh <thomas@t-8ch.de>
SEE ALSO
REPORTING BUGS
For bug reports, use the issue tracker https://github.com/util-linux/util-linux/issues.
AVAILABILITY
The enosys command is part of the util-linux package which can be downloaded from Linux Kernel Archive https://www.kernel.org/pub/linux/utils/util-linux/.
2025-03-29 | util-linux 2.41 |