Add code_coverage seccomp policy for riscv64

Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com>
Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Change-Id: I840cce02a087d05587bfa61824e9071732c16218
This commit is contained in:
Chen Guoyin 2022-10-12 22:22:09 +08:00 committed by Mao Han
parent 46ed34b68f
commit 0d77b388f5
3 changed files with 33 additions and 0 deletions

View file

@ -24,6 +24,14 @@ prebuilt_etc {
},
},
},
riscv64: {
src: "empty_policy/code_coverage.riscv64.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.riscv64.policy",
},
},
},
x86: {
src: "empty_policy/code_coverage.x86.policy",
product_variables: {
@ -67,6 +75,14 @@ prebuilt_etc {
},
},
},
riscv64: {
src: "empty_policy/code_coverage.riscv64.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.riscv64.policy",
},
},
},
x86: {
src: "empty_policy/code_coverage.x86_64.policy",
product_variables: {

View file

@ -0,0 +1,2 @@
# empty unless code_coverage is enabled.
# code_coverage.riscv64.policy

View file

@ -0,0 +1,15 @@
close: 1
fchmod: 1
mkdirat: 1
msync: 1
munmap: 1
openat: 1
write: 1
fcntl: 1
fstat: 1
ftruncate: 1
geteuid: 1
lseek: 1
mmap: 1
rt_sigreturn: 1
prctl: 1