Lines Matching refs:commands
283 std::string commands; in makeCriticalCommands() local
286 StringAppendF(&commands, "-A %s -p icmpv6 --icmpv6-type %s -j RETURN\n", in makeCriticalCommands()
290 return commands; in makeCriticalCommands()
295 std::string commands; in makeUidRules() local
296 StringAppendF(&commands, "*filter\n:%s -\n", name); in makeUidRules()
301 StringAppendF(&commands, "-A %s -m owner --uid-owner %d -j RETURN\n", name, uid); in makeUidRules()
305 StringAppendF(&commands, in makeUidRules()
310 StringAppendF(&commands, in makeUidRules()
314 StringAppendF(&commands, "-A %s -p esp -j RETURN\n", name); in makeUidRules()
318 StringAppendF(&commands, "-A %s -i lo -j RETURN\n", name); in makeUidRules()
319 StringAppendF(&commands, "-A %s -o lo -j RETURN\n", name); in makeUidRules()
323 StringAppendF(&commands, "-A %s -p tcp --tcp-flags RST RST -j RETURN\n", name); in makeUidRules()
326 commands.append(makeCriticalCommands(target, name)); in makeUidRules()
332 StringAppendF(&commands, "-A %s -m owner --uid-owner %d -j DROP\n", name, uid); in makeUidRules()
339 StringAppendF(&commands, "-A %s -j DROP\n", name); in makeUidRules()
342 StringAppendF(&commands, "COMMIT\n"); in makeUidRules()
344 return commands; in makeUidRules()