changed inheritable capability set to the permitted one to execute firewall script with CAP_NET_ADMIN
This commit is contained in:
+1
-2
@@ -251,8 +251,7 @@ static void drop_capabilities(private_daemon_t *this, bool full)
|
|||||||
|
|
||||||
hdr.version = _LINUX_CAPABILITY_VERSION;
|
hdr.version = _LINUX_CAPABILITY_VERSION;
|
||||||
hdr.pid = 0;
|
hdr.pid = 0;
|
||||||
data.effective = data.permitted = keep;
|
data.inheritable = data.effective = data.permitted = keep;
|
||||||
data.inheritable = 0;
|
|
||||||
|
|
||||||
if (capset(&hdr, &data))
|
if (capset(&hdr, &data))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user