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");
152 info->match |= IPT_OWNER_UID;
162 info->match |= IPT_OWNER_GID;
168 info->match |= IPT_OWNER_PID;
173 info->match |= IPT_OWNER_SID;
178 info->match |= IPT_OWNER_COMM;
199 info->match |= IP6T_OWNER_UID;
209 info->match |= IP6T_OWNER_GID;
215 info->match |= IP6T_OWNER_PID;
220 info->match |= IP6T_OWNER_SID;
257 info->match |= XT_OWNER_UID;
268 info->match |= XT_OWNER_GID;
275 info->match |= XT_OWNER_SOCKET;
292 if (!(info->match & flag))
298 switch (info->match & flag) {
341 if (!(info->match & flag))
347 switch (info->match & flag) {
386 if (!(info->match & flag))
392 switch (info->match & flag) {
428 owner_mt_print_v0(const void *ip, const struct xt_entry_match *match,
431 const struct ipt_owner_info *info = (void *)match->data;
433 owner_mt_print_item_v0(info, "owner UID match", IPT_OWNER_UID, numeric);
434 owner_mt_print_item_v0(info, "owner GID match", IPT_OWNER_GID, numeric);
435 owner_mt_print_item_v0(info, "owner PID match", IPT_OWNER_PID, numeric);
436 owner_mt_print_item_v0(info, "owner SID match", IPT_OWNER_SID, numeric);
437 owner_mt_print_item_v0(info, "owner CMD match", IPT_OWNER_COMM, numeric);
441 owner_mt6_print_v0(const void *ip, const struct xt_entry_match *match,
444 const struct ip6t_owner_info *info = (void *)match->data;
446 owner_mt6_print_item_v0(info, "owner UID match", IPT_OWNER_UID, numeric);
447 owner_mt6_print_item_v0(info, "owner GID match", IPT_OWNER_GID, numeric);
448 owner_mt6_print_item_v0(info, "owner PID match", IPT_OWNER_PID, numeric);
449 owner_mt6_print_item_v0(info, "owner SID match", IPT_OWNER_SID, numeric);
452 static void owner_mt_print(const void *ip, const struct xt_entry_match *match,
455 const struct xt_owner_match_info *info = (void *)match->data;
458 owner_mt_print_item(info, "owner UID match", XT_OWNER_UID, numeric);
459 owner_mt_print_item(info, "owner GID match", XT_OWNER_GID, numeric);
463 owner_mt_save_v0(const void *ip, const struct xt_entry_match *match)
465 const struct ipt_owner_info *info = (void *)match->data;
475 owner_mt6_save_v0(const void *ip, const struct xt_entry_match *match)
477 const struct ip6t_owner_info *info = (void *)match->data;
485 static void owner_mt_save(const void *ip, const struct xt_entry_match *match)
487 const struct xt_owner_match_info *info = (void *)match->data;