Merge changes I840cce02,I3dbe6b6d
* changes: Add code_coverage seccomp policy for riscv64 Add riscv64 support for libcutils
This commit is contained in:
commit
ef8ea8f9f6
4 changed files with 38 additions and 0 deletions
|
@ -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: {
|
||||
|
|
2
code_coverage/empty_policy/code_coverage.riscv64.policy
Normal file
2
code_coverage/empty_policy/code_coverage.riscv64.policy
Normal file
|
@ -0,0 +1,2 @@
|
|||
# empty unless code_coverage is enabled.
|
||||
# code_coverage.riscv64.policy
|
15
code_coverage/seccomp_policy/code_coverage.riscv64.policy
Normal file
15
code_coverage/seccomp_policy/code_coverage.riscv64.policy
Normal 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
|
|
@ -219,6 +219,11 @@ cc_library {
|
|||
misc_undefined: ["integer"],
|
||||
},
|
||||
},
|
||||
android_riscv64: {
|
||||
sanitize: {
|
||||
misc_undefined: ["integer"],
|
||||
},
|
||||
},
|
||||
|
||||
android_x86: {
|
||||
// TODO: This is to work around b/29412086.
|
||||
|
|
Loading…
Reference in a new issue