File: enosys.1.adoc

package info (click to toggle)
util-linux 2.41-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 95,208 kB
  • sloc: ansic: 179,016; sh: 22,689; yacc: 1,284; makefile: 528; xml: 422; python: 316; lex: 89; ruby: 75; csh: 37; exp: 19; sed: 16; perl: 15; sql: 9
file content (93 lines) | stat: -rw-r--r-- 1,995 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
//po4a: entry man manual
= enosys(1)
:doctype: manpage
:man manual: User Commands
:man source: util-linux {release-version}
:page-layout: base
:command: enosys

== 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*::
Syscall to block with *ENOSYS*. Can be specified multiple times.
An alternative error number or name can be specified with a colon.

*-i*, *--ioctl*::
Ioctl to block with *ENOTTY*. Can be specified multiple times.
An alternative error number or name can be specified with a colon.

*-l*, *--list*::
List syscalls known to *enosys*.

*-m*, *--list-ioctl*::
List ioctls known to *enosys*.

*-d*, *--dump*[**=**_file_]::
Dump seccomp bytecode filter to standard output.
+
The dump can for example be used by *setpriv --seccomp-filter*.

include::man-common/help-version.adoc[]

== 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*::
internal error

*2*::
system does not provide the necessary functionality

== AUTHORS

mailto:thomas@t-8ch.de[Thomas Weißschuh]

== SEE ALSO

*syscall*(2)

include::man-common/bugreports.adoc[]

include::man-common/footer.adoc[]

ifdef::translation[]
include::man-common/translation.adoc[]
endif::[]