Commit be95ebc 1 parent b480b16 commit be95ebc Copy full SHA for be95ebc
File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -17,5 +17,4 @@ sudo: false
17
17
script :
18
18
- " uname -a"
19
19
- " bash node_build/run_jshint"
20
- # travis' new container infrastructure's libc doesn't have SIGSYS signal info
21
- - " Seccomp_NO=1 ./do"
20
+ - " ./do"
Original file line number Diff line number Diff line change 19
19
#include "util/Seccomp.h"
20
20
#include "util/Bits.h"
21
21
#include "util/ArchInfo.h"
22
+ #include "util/Defined.h"
22
23
23
24
// getpriority()
24
25
#include <sys/resource.h>
51
52
#if defined(si_syscall )
52
53
# define GET_SYSCALL_NUM (si ) ((si)->si_syscall)
53
54
#else
54
- # warning "your libc doesn't define SIGSYS signal info! Try build witch Seccomp_NO=1"
55
+ #pragma message "your libc doesn't define SIGSYS signal info! \
56
+ info about syscall number in case of SECCOMP crash can be invalid"
55
57
# define GET_SYSCALL_NUM (si ) ((si)->si_value.sival_int)
56
58
#endif
57
59
58
60
static void catchViolation (int sig , siginfo_t * si , void * threadContext )
59
61
{
60
62
printf ("Attempted banned syscall number [%d] see doc/Seccomp.md for more information\n" ,
61
63
GET_SYSCALL_NUM (si ));
64
+
65
+ if (Defined (si_syscall )) {
66
+ printf ("Your libc doesn't define SIGSYS signal info. "
67
+ "Above information about syscall number can be invalid.\n" );
68
+ }
69
+
62
70
Assert_failure ("Disallowed Syscall" );
63
71
}
64
72
You can’t perform that action at this time.
0 commit comments