Lines Matching refs:command
115 std::string command = in setFirewallType() local
121 res = execIptablesRestore(V4V6, command.c_str()); in setFirewallType()
135 std::string command = in resetFirewall() local
142 return (execIptablesRestore(V4V6, command.c_str()) == 0) ? 0 : -EREMOTEIO; in resetFirewall()
166 std::string command = "*filter\n"; in enableChildChains() local
168 StringAppendF(&command, "%s %s -j %s\n", (enable ? "-A" : "-D"), parent, name); in enableChildChains()
170 StringAppendF(&command, "COMMIT\n"); in enableChildChains()
172 return execIptablesRestore(V4V6, command); in enableChildChains()
205 std::string command = Join(std::vector<std::string> { in setInterfaceRule() local
211 return (execIptablesRestore(V4V6, command) == 0) ? 0 : -EREMOTEIO; in setInterfaceRule()
265 std::string command = "*filter\n"; in setUidRule() local
267 StringAppendF(&command, "%s %s -m owner --uid-owner %d -j %s\n", in setUidRule()
270 StringAppendF(&command, "COMMIT\n"); in setUidRule()
272 return (execIptablesRestore(V4V6, command) == 0) ? 0 : -EREMOTEIO; in setUidRule()