Searched refs:penalty (Results 1 - 2 of 2) sorted by relevance

/system/netd/server/
H A DStrictController.cpp58 // Chain triggered when cleartext socket detected and penalty is log
65 // Chain triggered when cleartext socket detected and penalty is reject
152 int StrictController::setUidCleartextPenalty(uid_t uid, StrictPenalty penalty) { argument
157 if (penalty == ACCEPT) {
175 if (penalty == LOG) {
179 } else if (penalty == REJECT) {
H A DCommandListener.cpp1527 StrictPenalty penalty = parsePenalty(argv[3]); local
1528 if (penalty == INVALID) {
1529 cli->sendMsg(ResponseCode::CommandSyntaxError, "Invalid penalty argument", false);
1533 int res = sStrictCtrl->setUidCleartextPenalty((uid_t) uid, penalty);

Completed in 34 milliseconds