]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
enosys: drop unnessecary load of ioctl number
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 4 Feb 2024 09:24:26 +0000 (10:24 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 4 Feb 2024 09:26:33 +0000 (10:26 +0100)
The ioctl number is properly loaded just below the deleted instruction
anyways.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/enosys.c

index 81e9323637532bb3f7b9e5252effef5bec02f899..80471f18f7861eff4d0ea13af81b41b0bee654a1 100644 (file)
@@ -223,8 +223,6 @@ int main(int argc, char **argv)
        INSTR(BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, __NR_ioctl, 1, 0));
        INSTR(BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW));
 
-       INSTR(BPF_STMT(BPF_LD | BPF_W | BPF_ABS, syscall_arg(1)));
-
        list_for_each(loop_ctr, &blocked_ioctls) {
                blocked = list_entry(loop_ctr, struct blocked_number, head);