diff options
author | mtk81216 <lina.wang@mediatek.com> | 2018-09-25 16:39:32 +0800 |
---|---|---|
committer | Isaac Lee <isaac.lee@mediatek.com> | 2018-11-06 06:06:39 +0000 |
commit | b5721f01889b91009defc68a9cc99b7c72d19c4b (patch) | |
tree | eaab4c2dc04a310834255c60b992f5c366149c61 | |
parent | 71c6d11e1fef4a52db0563ebca05dbd006467855 (diff) | |
download | iputils-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1262,8 +1262,6 @@ int main(int argc, char *argv[]) setup(icmp_sock); - drop_capabilities(); - main_loop(icmp_sock, packet, packlen); } |