Home
last modified time | relevance | path

Searched refs:commands (Results 1 – 25 of 113) sorted by relevance

12345

/system/netd/server/
DStrictController.cpp154 const std::string commands = Join(commandList, '\n'); in resetChains() local
155 return (execIptablesRestore(V4V6, commands) == 0) ? 0 : -EREMOTEIO; in resetChains()
167 std::vector<std::string> commands; in setUidCleartextPenalty() local
170 commands = { in setUidCleartextPenalty()
181 commands.push_back("*filter"); in setUidCleartextPenalty()
182 commands.push_back(StringPrintf(":%s -", perUidChain.c_str())); in setUidCleartextPenalty()
183 commands.push_back(StringPrintf("-I %s -m owner --uid-owner %d -j %s", in setUidCleartextPenalty()
185 commands.push_back(StringPrintf("-I %s -m owner --uid-owner %d -j %s", in setUidCleartextPenalty()
189 commands.push_back(StringPrintf("-A %s -j %s", perUidChain.c_str(), LOCAL_PENALTY_LOG)); in setUidCleartextPenalty()
191 commands.push_back(StringPrintf("-A %s -j %s", perUidChain.c_str(), in setUidCleartextPenalty()
[all …]
DFirewallController.cpp284 std::string commands; in makeCriticalCommands() local
287 StringAppendF(&commands, "-A %s -p icmpv6 --icmpv6-type %s -j RETURN\n", in makeCriticalCommands()
291 return commands; in makeCriticalCommands()
296 std::string commands; in makeUidRules() local
297 StringAppendF(&commands, "*filter\n:%s -\n", name); in makeUidRules()
302 StringAppendF(&commands, "-A %s -m owner --uid-owner %d -j RETURN\n", name, uid); in makeUidRules()
306 StringAppendF(&commands, in makeUidRules()
311 StringAppendF(&commands, in makeUidRules()
315 StringAppendF(&commands, "-A %s -p esp -j RETURN\n", name); in makeUidRules()
319 StringAppendF(&commands, "-A %s -i lo -j RETURN\n", name); in makeUidRules()
[all …]
DIptablesBaseTest.h31 static int fakeExecIptablesRestore(IptablesTarget target, const std::string& commands);
32 static int fakeExecIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands,
35 const std::string& commands, std::string *output);
DIptablesBaseTest.cpp75 const std::string& commands, in fakeExecIptablesRestoreWithOutput() argument
77 sRestoreCmds.push_back({ target, commands }); in fakeExecIptablesRestoreWithOutput()
87 int IptablesBaseTest::fakeExecIptablesRestore(IptablesTarget target, const std::string& commands) { in fakeExecIptablesRestore() argument
88 return fakeExecIptablesRestoreWithOutput(target, commands, nullptr); in fakeExecIptablesRestore()
DNetdConstants.cpp38 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands, in execIptablesRestoreWithOutput() argument
40 return android::net::gCtls->iptablesRestoreCtrl.execute(target, commands, output); in execIptablesRestoreWithOutput()
43 int execIptablesRestore(IptablesTarget target, const std::string& commands) { in execIptablesRestore() argument
44 return execIptablesRestoreWithOutput(target, commands, nullptr); in execIptablesRestore()
DIptablesRestoreController.h33 virtual int execute(const IptablesTarget target, const std::string& commands,
45 int execute(const IptablesTarget target, const std::string& commands,
DTetherControllerTest.cpp197 ExpectedIptablesCommands commands; in allNewNatCommands() local
202 appendAll(commands, setupFirstIPv4Commands); in allNewNatCommands()
205 appendAll(commands, setupFirstIPv6Commands); in allNewNatCommands()
208 appendAll(commands, ALERT_ADD_COMMAND); in allNewNatCommands()
210 appendAll(commands, startFirstNatCommands); in allNewNatCommands()
212 return commands; in allNewNatCommands()
DNetdConstants.h36 int execIptablesRestore(IptablesTarget target, const std::string& commands);
37 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands,
DBandwidthController.cpp285 std::string commands = Join(IPT_FLUSH_COMMANDS, '\n'); in flushCleanTables() local
286 iptablesRestoreFunction(V4V6, commands, nullptr); in flushCleanTables()
304 std::string commands = Join(getBasicAccountingCommands(mBpfSupported), '\n'); in enableBandwidthControl() local
305 return iptablesRestoreFunction(V4V6, commands, nullptr); in enableBandwidthControl()
756 std::vector<std::string> commands = { in setCostlyAlert() local
761 res = iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr); in setCostlyAlert()
786 std::vector<std::string> commands = { in removeCostlyAlert() local
791 if (iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr) != 0) { in removeCostlyAlert()
DStrictController.h49 static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);
/system/core/init/
Dinit_test.cpp39 const std::vector<ActionManagerCommand>& commands, ServiceList* service_list) { in TestInit() argument
51 for (const auto& command : commands) { in TestInit()
61 const std::vector<ActionManagerCommand>& commands, ServiceList* service_list) { in TestInitText() argument
65 TestInit(tf.path, test_function_map, commands, service_list); in TestInitText()
80 std::vector<ActionManagerCommand> commands{trigger_boot}; in TEST() local
83 TestInitText(init_script, test_function_map, commands, &service_list); in TEST()
109 std::vector<ActionManagerCommand> commands{trigger_boot}; in TEST() local
112 TestInitText(init_script, test_function_map, commands, &service_list); in TEST()
190 std::vector<ActionManagerCommand> commands{trigger_boot}; in TEST() local
194 TestInit(start.path, test_function_map, commands, &service_list); in TEST()
/system/core/adb/client/
Dconsole.cpp116 std::string commands = adb_construct_auth_command(); in adb_send_emulator_command() local
119 commands.append(argv[i]); in adb_send_emulator_command()
120 commands.push_back(i == argc - 1 ? '\n' : ' '); in adb_send_emulator_command()
123 commands.append("quit\n"); in adb_send_emulator_command()
125 if (!WriteFdExactly(fd, commands)) { in adb_send_emulator_command()
/system/bt/tools/hci/
Dmain.c37 static const command_t commands[] = { variable
204 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in find_command()
205 if (!strcmp(commands[i].name, name)) return &commands[i]; in find_command()
212 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in usage()
213 printf(" %s\n", commands[i].name); in usage()
/system/tools/hidl/test/java_test/
Dhidl_test_java15 app_process /data/framework com.android.commands.hidl_test_java.HidlTestJava -c \
22 app_process /data/framework com.android.commands.hidl_test_java.HidlTestJava -s &
/system/sepolicy/prebuilts/api/29.0/public/
Dhal_drm.te34 # only allow unprivileged socket ioctl commands
46 # do not allow privileged socket ioctl commands
Dcameraserver.te56 # Allow shell commands from ADB for CTS testing/dumping
69 # Allow shell commands from ADB for CTS testing/dumping
/system/sepolicy/public/
Dhal_drm.te34 # only allow unprivileged socket ioctl commands
46 # do not allow privileged socket ioctl commands
/system/sepolicy/prebuilts/api/28.0/public/
Dhal_drm.te40 # only allow unprivileged socket ioctl commands
52 # do not allow privileged socket ioctl commands
Dcameraserver.te53 # Allow shell commands from ADB for CTS testing/dumping
60 # Allow shell commands from ADB for CTS testing/dumping
/system/sepolicy/prebuilts/api/27.0/public/
Dhal_drm.te47 # only allow unprivileged socket ioctl commands
59 # do not allow privileged socket ioctl commands
/system/sepolicy/prebuilts/api/26.0/public/
Dhal_drm.te47 # only allow unprivileged socket ioctl commands
59 # do not allow privileged socket ioctl commands
/system/core/adb/daemon/
Dshell_service_test.cpp207 const char* commands[] = {"TEST_STR=abc123", in TEST_F() local
212 for (std::string command : commands) { in TEST_F()
224 for (const char* command : commands) { in TEST_F()
/system/iorap/src/perfetto/
Dmain.cc99 auto /*observable<PerfettoStreamCommand>*/ commands = in CollectPerfettoTraceBufferViaAbstractions() local
114 producer_factory.CreateTraceStream(commands); in CollectPerfettoTraceBufferViaAbstractions()
/system/sepolicy/prebuilts/api/29.0/private/
Dshell.te50 # Allow shell to run adb shell cmd stats commands. Needed for CTS.
57 # Allow shell to run adb shell cmd gpu commands.
/system/sepolicy/private/
Dshell.te50 # Allow shell to run adb shell cmd stats commands. Needed for CTS.
57 # Allow shell to run adb shell cmd gpu commands.

12345