mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 10:08:07 +00:00
Fix some minor formatting
This commit is contained in:
@ -10,13 +10,13 @@
|
|||||||
|
|
||||||
int seccomp_event_create(void) {
|
int seccomp_event_create(void) {
|
||||||
|
|
||||||
#ifdef SYS_eventfd
|
#ifdef SYS_eventfd
|
||||||
int fd = syscall(SYS_eventfd, 0, 0);
|
int fd = syscall(SYS_eventfd, 0, 0);
|
||||||
#else
|
#else
|
||||||
# ifdef SYS_eventfd2
|
#ifdef SYS_eventfd2
|
||||||
int fd = syscall(SYS_eventfd2, 0, 0);
|
int fd = syscall(SYS_eventfd2, 0, 0);
|
||||||
# endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
if (fd < 0) { FFATAL("seccomp_event_create"); }
|
if (fd < 0) { FFATAL("seccomp_event_create"); }
|
||||||
return fd;
|
return fd;
|
||||||
|
|
||||||
|
@ -72,13 +72,13 @@ static struct sock_filter filter[] = {
|
|||||||
|
|
||||||
/* Allow us to make anonymous maps */
|
/* Allow us to make anonymous maps */
|
||||||
BPF_STMT(BPF_LD | BPF_W | BPF_ABS, (offsetof(struct seccomp_data, nr))),
|
BPF_STMT(BPF_LD | BPF_W | BPF_ABS, (offsetof(struct seccomp_data, nr))),
|
||||||
#ifdef __NR_mmap
|
#ifdef __NR_mmap
|
||||||
BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, __NR_mmap, 0, 3),
|
BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, __NR_mmap, 0, 3),
|
||||||
#else
|
#else
|
||||||
# ifdef __NR_mmap2
|
#ifdef __NR_mmap2
|
||||||
BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, __NR_mmap2, 0, 3),
|
BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, __NR_mmap2, 0, 3),
|
||||||
# endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
BPF_STMT(BPF_LD | BPF_W | BPF_ABS,
|
BPF_STMT(BPF_LD | BPF_W | BPF_ABS,
|
||||||
(offsetof(struct seccomp_data, args[4]))),
|
(offsetof(struct seccomp_data, args[4]))),
|
||||||
BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, -1, 0, 1),
|
BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, -1, 0, 1),
|
||||||
|
Reference in New Issue
Block a user