Commit e540ad9
selftests/seccomp: Add test for atomic addfd+send
This just adds a test to verify that when using the new introduced flag
to ADDFD, a valid fd is added and returned as the syscall result.
Signed-off-by: Rodrigo Campos <rodrigo@kinvolk.io>
Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Acked-by: Tycho Andersen <tycho@tycho.pizza>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210517193908.3113-5-sargun@sargun.me1 parent 0ae71c7 commit e540ad9
1 file changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
238 | 242 | | |
239 | 243 | | |
240 | 244 | | |
| |||
3976 | 3980 | | |
3977 | 3981 | | |
3978 | 3982 | | |
| 3983 | + | |
3979 | 3984 | | |
3980 | 3985 | | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
3981 | 3991 | | |
3982 | 3992 | | |
3983 | 3993 | | |
| |||
4056 | 4066 | | |
4057 | 4067 | | |
4058 | 4068 | | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
| 4075 | + | |
| 4076 | + | |
| 4077 | + | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
| 4081 | + | |
| 4082 | + | |
| 4083 | + | |
| 4084 | + | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
| 4089 | + | |
| 4090 | + | |
| 4091 | + | |
| 4092 | + | |
4059 | 4093 | | |
4060 | 4094 | | |
4061 | 4095 | | |
| |||
4116 | 4150 | | |
4117 | 4151 | | |
4118 | 4152 | | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
4119 | 4157 | | |
4120 | 4158 | | |
4121 | 4159 | | |
| |||
0 commit comments