Home
last modified time | relevance | path

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

123456

/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.cpp283 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()
[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.cpp37 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands, in execIptablesRestoreWithOutput() argument
39 return android::net::gCtls->iptablesRestoreCtrl.execute(target, commands, output); in execIptablesRestoreWithOutput()
42 int execIptablesRestore(IptablesTarget target, const std::string& commands) { in execIptablesRestore() argument
43 return execIptablesRestoreWithOutput(target, commands, nullptr); in execIptablesRestore()
DNetdConstants.h32 int execIptablesRestore(IptablesTarget target, const std::string& commands);
33 int execIptablesRestoreWithOutput(IptablesTarget target, const std::string& commands,
DIptablesRestoreController.h33 virtual int execute(const IptablesTarget target, const std::string& commands,
45 int execute(const IptablesTarget target, const std::string& commands,
DBandwidthController.cpp305 std::string commands = Join(IPT_FLUSH_COMMANDS, '\n'); in flushCleanTables() local
306 iptablesRestoreFunction(V4V6, commands, nullptr); in flushCleanTables()
324 std::string commands = Join(getBasicAccountingCommands(mBpfSupported), '\n'); in enableBandwidthControl() local
325 return iptablesRestoreFunction(V4V6, commands, nullptr); in enableBandwidthControl()
773 std::vector<std::string> commands = { in setCostlyAlert() local
778 res = iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr); in setCostlyAlert()
803 std::vector<std::string> commands = { in removeCostlyAlert() local
808 if (iptablesRestoreFunction(V4V6, Join(commands, ""), nullptr) != 0) { in removeCostlyAlert()
DStrictController.h49 static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);
DTetherControllerTest.cpp247 ExpectedIptablesCommands commands; in allNewNatCommands() local
252 appendAll(commands, setupFirstIPv4Commands); in allNewNatCommands()
255 appendAll(commands, setupFirstIPv6Commands); in allNewNatCommands()
258 appendAll(commands, ALERT_ADD_COMMAND); in allNewNatCommands()
260 appendAll(commands, startFirstNatCommands); in allNewNatCommands()
262 return commands; in allNewNatCommands()
/system/core/init/
Dinit_test.cpp44 const std::vector<ActionManagerCommand>& commands, ServiceList* service_list) { in TestInit() argument
57 for (const auto& command : commands) { in TestInit()
67 const std::vector<ActionManagerCommand>& commands, ServiceList* service_list) { in TestInitText() argument
71 TestInit(tf.path, test_function_map, commands, service_list); in TestInitText()
91 std::vector<ActionManagerCommand> commands{trigger_boot}; in TEST() local
94 TestInitText(init_script, test_function_map, commands, &service_list); in TEST()
154 std::vector<ActionManagerCommand> commands{trigger_boot}; in TEST() local
157 TestInitText(init_script, test_function_map, commands, &service_list); in TEST()
236 std::vector<ActionManagerCommand> commands{trigger_boot}; in TEST() local
240 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.c38 static const command_t commands[] = { variable
205 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in find_command()
206 if (!strcmp(commands[i].name, name)) return &commands[i]; in find_command()
213 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in usage()
214 printf(" %s\n", commands[i].name); in usage()
/system/tools/hidl/test/java_test/
Dhidl_test_java16 app_process /data/framework com.android.commands.hidl_test_java.HidlTestJava -c \
23 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.te39 # only allow unprivileged socket ioctl commands
51 # do not allow privileged socket ioctl commands
/system/sepolicy/prebuilts/api/30.0/public/
Dhal_drm.te39 # only allow unprivileged socket ioctl commands
51 # 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/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/26.0/public/
Dhal_drm.te47 # only allow unprivileged socket ioctl commands
59 # do not allow privileged socket ioctl commands
/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/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()

123456