-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtlsdate-seccomp-x86.policy
64 lines (62 loc) · 1.19 KB
/
tlsdate-seccomp-x86.policy
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
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# rseq should be first due to frequency and purpose to decrease nptl latency
rseq: 1
open: 1
openat: 1
# Don't allow mmap2 with both PROT_WRITE and PROT_EXEC.
mmap2: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
read: 1
close: 1
fstat64: 1
stat64: 1
munmap: 1
# Don't allow mprotect with PROT_EXEC.
mprotect: arg2 in ~PROT_EXEC
time: 1
socketcall: 1
_llseek: 1
brk: 1
write: 1
execve: 1
fcntl64: 1
gettimeofday: 1
poll: 1
access: 1
set_thread_area: 1
waitpid: 1
exit_group: 1
rt_sigprocmask: 1
getuid32: 1
clone: 1
rt_sigaction: 1
# Allow request == RTC_SET_TIME || request == FIONREAD
ioctl: arg1 == 0x4024700a || arg1 == 0x541b
setgid32: 1
setgroups32: 1
setresuid32: 1
settimeofday: 1
restart_syscall: 1
setresgid32: 1
nanosleep: 1
clock_nanosleep: 1
clock_nanosleep_time64: 1
exit: 1
rt_sigreturn: 1
rename: 1
select: 1
_newselect: 1
clock_gettime: 1
clock_gettime64: 1
clock_settime: 1
clock_settime64: 1
futex: 1
futex_time64: 1
getrlimit: 1
ugetrlimit: 1
set_robust_list: 1
set_tid_address: 1
uname: 1
getpid: 1
prlimit64: arg2 == 0 && arg3 != 0