Lines Matching refs:command
116 std::string command = in setFirewallType() local
122 res = execIptablesRestore(V4V6, command.c_str()); in setFirewallType()
136 std::string command = in resetFirewall() local
143 return (execIptablesRestore(V4V6, command.c_str()) == 0) ? 0 : -EREMOTEIO; in resetFirewall()
167 std::string command = "*filter\n"; in enableChildChains() local
169 StringAppendF(&command, "%s %s -j %s\n", (enable ? "-A" : "-D"), parent, name); in enableChildChains()
171 StringAppendF(&command, "COMMIT\n"); in enableChildChains()
173 return execIptablesRestore(V4V6, command); in enableChildChains()
206 std::string command = Join(std::vector<std::string> { in setInterfaceRule() local
212 return (execIptablesRestore(V4V6, command) == 0) ? 0 : -EREMOTEIO; in setInterfaceRule()
266 std::string command = "*filter\n"; in setUidRule() local
268 StringAppendF(&command, "%s %s -m owner --uid-owner %d -j %s\n", in setUidRule()
271 StringAppendF(&command, "COMMIT\n"); in setUidRule()
273 return (execIptablesRestore(V4V6, command) == 0) ? 0 : -EREMOTEIO; in setUidRule()