ENOSYS(1) | Команди користувача | ENOSYS(1) |
НАЗВА
enosys - інструмент для завершення системних викликів помилкою з кодом ENOSYS
КОРОТКИЙ ОПИС
enosys [--syscall|-s системний-виклик] команда
ОПИС
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.
ПАРАМЕТРИ
-s, --syscall
-i, --ioctl
-l, --list
-m, --list-ioctl
-d, --dump[=файл]
The dump can for example be used by setpriv --seccomp-filter.
-h, --help
-V, --version
ПРИКЛАДИ
# 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 ...
# вийти з помилкою для ioctl FIOCLEX зі значенням 12/ENOMEM enosys -i FIOCLEX:12 ...
СТАН ВИХОДУ
enosys exits with the status code of the executed process. The following values have special meanings:
1
2
АВТОРИ
Thomas Weißschuh <thomas@t-8ch.de>
ТАКОЖ ПЕРЕГЛЯНЬТЕ
ЯК НАДІСЛАТИ ЗВІТ ПРО ВАДИ
Для звітування щодо вад скористайтеся системою стеження за вадами https://github.com/util-linux/util-linux/issues
ДОСТУП ДО ПРОГРАМИ
Програма enosys є частиною пакунка util-linux, який можна отримати з архіву ядра Linux https://www.kernel.org/pub/linux/utils/util-linux/.
2025-03-29 | util-linux 2.41 |