summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Gao2018-02-08 18:46:55 -0600
committerJosh Gao2018-02-08 18:48:03 -0600
commit08cd23e732a0a292f0fffb6b7ac19d960f03e1d4 (patch)
tree68f8029ddfb41ad8f49960dd3edf912b802afda3 /debuggerd
parent9d6b55928ca9829fa3a4ff1bb71c9668d452a085 (diff)
downloadplatform-system-core-08cd23e732a0a292f0fffb6b7ac19d960f03e1d4.tar.gz
platform-system-core-08cd23e732a0a292f0fffb6b7ac19d960f03e1d4.tar.xz
platform-system-core-08cd23e732a0a292f0fffb6b7ac19d960f03e1d4.zip
debuggerd: update policy for recent sigaction changes.
Commit 3e235911 in bionic switched LP32's sigaction implementation over to using the rt_sigaction syscall, matching LP64. Update our seccomp policy to match. Bug: http://b/73119572 Test: debuggerd_test32 Change-Id: I0a662a1c874298d434468d2dcdb4ebf9f276110c
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/seccomp_policy/crash_dump.arm.policy2
-rw-r--r--debuggerd/seccomp_policy/crash_dump.arm64.policy2
-rw-r--r--debuggerd/seccomp_policy/crash_dump.policy.def3
-rw-r--r--debuggerd/seccomp_policy/crash_dump.x86.policy2
-rw-r--r--debuggerd/seccomp_policy/crash_dump.x86_64.policy2
5 files changed, 5 insertions, 6 deletions
diff --git a/debuggerd/seccomp_policy/crash_dump.arm.policy b/debuggerd/seccomp_policy/crash_dump.arm.policy
index c64e28824..b1f459da8 100644
--- a/debuggerd/seccomp_policy/crash_dump.arm.policy
+++ b/debuggerd/seccomp_policy/crash_dump.arm.policy
@@ -22,6 +22,7 @@ recvmsg: 1
22process_vm_readv: 1 22process_vm_readv: 1
23tgkill: 1 23tgkill: 1
24rt_sigprocmask: 1 24rt_sigprocmask: 1
25rt_sigaction: 1
25rt_tgsigqueueinfo: 1 26rt_tgsigqueueinfo: 1
26prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41 27prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41
27madvise: 1 28madvise: 1
@@ -30,7 +31,6 @@ munmap: 1
30getuid32: 1 31getuid32: 1
31fstat64: 1 32fstat64: 1
32mmap2: arg2 in PROT_READ|PROT_WRITE 33mmap2: arg2 in PROT_READ|PROT_WRITE
33sigaction: 1
34geteuid32: 1 34geteuid32: 1
35getgid32: 1 35getgid32: 1
36getegid32: 1 36getegid32: 1
diff --git a/debuggerd/seccomp_policy/crash_dump.arm64.policy b/debuggerd/seccomp_policy/crash_dump.arm64.policy
index 0c689bbd6..e5e7afb2c 100644
--- a/debuggerd/seccomp_policy/crash_dump.arm64.policy
+++ b/debuggerd/seccomp_policy/crash_dump.arm64.policy
@@ -21,6 +21,7 @@ recvmsg: 1
21process_vm_readv: 1 21process_vm_readv: 1
22tgkill: 1 22tgkill: 1
23rt_sigprocmask: 1 23rt_sigprocmask: 1
24rt_sigaction: 1
24rt_tgsigqueueinfo: 1 25rt_tgsigqueueinfo: 1
25prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41 26prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41
26madvise: 1 27madvise: 1
@@ -29,7 +30,6 @@ munmap: 1
29getuid: 1 30getuid: 1
30fstat: 1 31fstat: 1
31mmap: arg2 in PROT_READ|PROT_WRITE 32mmap: arg2 in PROT_READ|PROT_WRITE
32rt_sigaction: 1
33geteuid: 1 33geteuid: 1
34getgid: 1 34getgid: 1
35getegid: 1 35getegid: 1
diff --git a/debuggerd/seccomp_policy/crash_dump.policy.def b/debuggerd/seccomp_policy/crash_dump.policy.def
index dadffac8d..b78c94a2b 100644
--- a/debuggerd/seccomp_policy/crash_dump.policy.def
+++ b/debuggerd/seccomp_policy/crash_dump.policy.def
@@ -29,6 +29,7 @@ process_vm_readv: 1
29 29
30tgkill: 1 30tgkill: 1
31rt_sigprocmask: 1 31rt_sigprocmask: 1
32rt_sigaction: 1
32rt_tgsigqueueinfo: 1 33rt_tgsigqueueinfo: 1
33 34
34#define PR_SET_VMA 0x53564d41 35#define PR_SET_VMA 0x53564d41
@@ -42,12 +43,10 @@ munmap: 1
42getuid: 1 43getuid: 1
43fstat: 1 44fstat: 1
44mmap: arg2 in PROT_READ|PROT_WRITE 45mmap: arg2 in PROT_READ|PROT_WRITE
45rt_sigaction: 1
46#else 46#else
47getuid32: 1 47getuid32: 1
48fstat64: 1 48fstat64: 1
49mmap2: arg2 in PROT_READ|PROT_WRITE 49mmap2: arg2 in PROT_READ|PROT_WRITE
50sigaction: 1
51#endif 50#endif
52 51
53// Needed for logging. 52// Needed for logging.
diff --git a/debuggerd/seccomp_policy/crash_dump.x86.policy b/debuggerd/seccomp_policy/crash_dump.x86.policy
index c64e28824..b1f459da8 100644
--- a/debuggerd/seccomp_policy/crash_dump.x86.policy
+++ b/debuggerd/seccomp_policy/crash_dump.x86.policy
@@ -22,6 +22,7 @@ recvmsg: 1
22process_vm_readv: 1 22process_vm_readv: 1
23tgkill: 1 23tgkill: 1
24rt_sigprocmask: 1 24rt_sigprocmask: 1
25rt_sigaction: 1
25rt_tgsigqueueinfo: 1 26rt_tgsigqueueinfo: 1
26prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41 27prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41
27madvise: 1 28madvise: 1
@@ -30,7 +31,6 @@ munmap: 1
30getuid32: 1 31getuid32: 1
31fstat64: 1 32fstat64: 1
32mmap2: arg2 in PROT_READ|PROT_WRITE 33mmap2: arg2 in PROT_READ|PROT_WRITE
33sigaction: 1
34geteuid32: 1 34geteuid32: 1
35getgid32: 1 35getgid32: 1
36getegid32: 1 36getegid32: 1
diff --git a/debuggerd/seccomp_policy/crash_dump.x86_64.policy b/debuggerd/seccomp_policy/crash_dump.x86_64.policy
index 0c689bbd6..e5e7afb2c 100644
--- a/debuggerd/seccomp_policy/crash_dump.x86_64.policy
+++ b/debuggerd/seccomp_policy/crash_dump.x86_64.policy
@@ -21,6 +21,7 @@ recvmsg: 1
21process_vm_readv: 1 21process_vm_readv: 1
22tgkill: 1 22tgkill: 1
23rt_sigprocmask: 1 23rt_sigprocmask: 1
24rt_sigaction: 1
24rt_tgsigqueueinfo: 1 25rt_tgsigqueueinfo: 1
25prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41 26prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41
26madvise: 1 27madvise: 1
@@ -29,7 +30,6 @@ munmap: 1
29getuid: 1 30getuid: 1
30fstat: 1 31fstat: 1
31mmap: arg2 in PROT_READ|PROT_WRITE 32mmap: arg2 in PROT_READ|PROT_WRITE
32rt_sigaction: 1
33geteuid: 1 33geteuid: 1
34getgid: 1 34getgid: 1
35getegid: 1 35getegid: 1