Home | History | Annotate | Download | only in extensions

Lines Matching refs:match

15 /* match and invert flags */
35 uint8_t match, invert; /* flags */
44 uint8_t match, invert; /* flags */
64 "owner match options:\n"
65 "[!] --uid-owner userid Match local UID\n"
66 "[!] --gid-owner groupid Match local GID\n"
67 "[!] --pid-owner processid Match local PID\n"
68 "[!] --sid-owner sessionid Match local SID\n"
69 "[!] --cmd-owner name Match local command name\n"
76 "owner match options:\n"
77 "[!] --uid-owner userid Match local UID\n"
78 "[!] --gid-owner groupid Match local GID\n"
79 "[!] --pid-owner processid Match local PID\n"
80 "[!] --sid-owner sessionid Match local SID\n"
87 "owner match options:\n"
88 "[!] --uid-owner userid[-userid] Match local UID\n"
89 "[!] --gid-owner groupid[-groupid] Match local GID\n"
90 "[!] --socket-exists Match if socket exists\n");
153 info->match |= IPT_OWNER_UID;
163 info->match |= IPT_OWNER_GID;
169 info->match |= IPT_OWNER_PID;
174 info->match |= IPT_OWNER_SID;
179 info->match |= IPT_OWNER_COMM;
200 info->match |= IP6T_OWNER_UID;
210 info->match |= IP6T_OWNER_GID;
216 info->match |= IP6T_OWNER_PID;
221 info->match |= IP6T_OWNER_SID;
258 info->match |= XT_OWNER_UID;
269 info->match |= XT_OWNER_GID;
276 info->match |= XT_OWNER_SOCKET;
293 if (!(info->match & flag))
299 switch (info->match & flag) {
342 if (!(info->match & flag))
348 switch (info->match & flag) {
387 if (!(info->match & flag))
393 switch (info->match & flag) {
429 owner_mt_print_v0(const void *ip, const struct xt_entry_match *match,
432 const struct ipt_owner_info *info = (void *)match->data;
434 owner_mt_print_item_v0(info, "owner UID match", IPT_OWNER_UID, numeric);
435 owner_mt_print_item_v0(info, "owner GID match", IPT_OWNER_GID, numeric);
436 owner_mt_print_item_v0(info, "owner PID match", IPT_OWNER_PID, numeric);
437 owner_mt_print_item_v0(info, "owner SID match", IPT_OWNER_SID, numeric);
438 owner_mt_print_item_v0(info, "owner CMD match", IPT_OWNER_COMM, numeric);
442 owner_mt6_print_v0(const void *ip, const struct xt_entry_match *match,
445 const struct ip6t_owner_info *info = (void *)match->data;
447 owner_mt6_print_item_v0(info, "owner UID match", IPT_OWNER_UID, numeric);
448 owner_mt6_print_item_v0(info, "owner GID match", IPT_OWNER_GID, numeric);
449 owner_mt6_print_item_v0(info, "owner PID match", IPT_OWNER_PID, numeric);
450 owner_mt6_print_item_v0(info, "owner SID match", IPT_OWNER_SID, numeric);
453 static void owner_mt_print(const void *ip, const struct xt_entry_match *match,
456 const struct xt_owner_match_info *info = (void *)match->data;
459 owner_mt_print_item(info, "owner UID match", XT_OWNER_UID, numeric);
460 owner_mt_print_item(info, "owner GID match", XT_OWNER_GID, numeric);
464 owner_mt_save_v0(const void *ip, const struct xt_entry_match *match)
466 const struct ipt_owner_info *info = (void *)match->data;
476 owner_mt6_save_v0(const void *ip, const struct xt_entry_match *match)
478 const struct ip6t_owner_info *info = (void *)match->data;
486 static void owner_mt_save(const void *ip, const struct xt_entry_match *match)
488 const struct xt_owner_match_info *info = (void *)match->data;