aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormtk81216 <lina.wang@mediatek.com>2018-09-25 16:39:32 +0800
committerIsaac Lee <isaac.lee@mediatek.com>2018-11-06 06:06:39 +0000
commitb5721f01889b91009defc68a9cc99b7c72d19c4b (patch)
treeeaab4c2dc04a310834255c60b992f5c366149c61
parent71c6d11e1fef4a52db0563ebca05dbd006467855 (diff)
downloadiputils-b5721f01889b91009defc68a9cc99b7c72d19c4b.tar.gz
Don't drop capability
when some app wants to call /system/bin/ping6 to do something, seccomp blocks system call--setuid & getuid. remove dropping capability to make ping6 used. /system/bin/ping doesnot call setuid & getuid, so ping6 is the same behaviour Bug: 116843590 Test: manual, run app's ping6.ttl, success always Change-Id: I9e9d45c8e8f049bc11dd652fefff12f79ef24eb6
-rw-r--r--ping6.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ping6.c b/ping6.c
index baa0768..e071858 100644
--- a/ping6.c
+++ b/ping6.c
@@ -1262,8 +1262,6 @@ int main(int argc, char *argv[])
setup(icmp_sock);
- drop_capabilities();
-
main_loop(icmp_sock, packet, packlen);
}