From 95d53894fc6e2098e6c002c9c0d4c67ef2d61861 Mon Sep 17 00:00:00 2001 From: Pal Szasz Date: Thu, 8 Apr 2010 09:24:09 +0200 Subject: [PATCH] Keep also the CAP_NET_RAW capability This capability is used to open a packet connection, needed by do_dhcp -> dhcp_init_ifc -> open_raw_socket in libnetutils. Change-Id: Ib9fcabccea0bef551f93edf6d7f58f31ca748763 --- rild/rild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rild/rild.c b/rild/rild.c index c14cbfb..a3d7943 100644 --- a/rild/rild.c +++ b/rild/rild.c @@ -93,7 +93,7 @@ void switchUser() { struct __user_cap_data_struct cap; header.version = _LINUX_CAPABILITY_VERSION; header.pid = 0; - cap.effective = cap.permitted = 1 << CAP_NET_ADMIN; + cap.effective = cap.permitted = (1 << CAP_NET_ADMIN) | (1 << CAP_NET_RAW); cap.inheritable = 0; capset(&header, &cap); } -- 2.11.0