Lines Matching full:info
139 struct ipt_owner_info *info = cb->data;
152 info->invert |= IPT_OWNER_UID;
153 info->match |= IPT_OWNER_UID;
154 info->uid = id;
162 info->invert |= IPT_OWNER_GID;
163 info->match |= IPT_OWNER_GID;
164 info->gid = id;
168 info->invert |= IPT_OWNER_PID;
169 info->match |= IPT_OWNER_PID;
173 info->invert |= IPT_OWNER_SID;
174 info->match |= IPT_OWNER_SID;
178 info->invert |= IPT_OWNER_COMM;
179 info->match |= IPT_OWNER_COMM;
186 struct ip6t_owner_info *info = cb->data;
199 info->invert |= IP6T_OWNER_UID;
200 info->match |= IP6T_OWNER_UID;
201 info->uid = id;
209 info->invert |= IP6T_OWNER_GID;
210 info->match |= IP6T_OWNER_GID;
211 info->gid = id;
215 info->invert |= IP6T_OWNER_PID;
216 info->match |= IP6T_OWNER_PID;
220 info->invert |= IP6T_OWNER_SID;
221 info->match |= IP6T_OWNER_SID;
244 struct xt_owner_match_info *info = cb->data;
257 info->invert |= XT_OWNER_UID;
258 info->match |= XT_OWNER_UID;
259 info->uid_min = from;
260 info->uid_max = to;
268 info->invert |= XT_OWNER_GID;
269 info->match |= XT_OWNER_GID;
270 info->gid_min = from;
271 info->gid_max = to;
275 info->invert |= XT_OWNER_SOCKET;
276 info->match |= XT_OWNER_SOCKET;
290 owner_mt_print_item_v0(const struct ipt_owner_info *info, const char *label,
293 if (!(info->match & flag))
295 if (info->invert & flag)
299 switch (info->match & flag) {
302 struct passwd *pwd = getpwuid(info->uid);
309 printf(" %u", (unsigned int)info->uid);
314 struct group *grp = getgrgid(info->gid);
321 printf(" %u", (unsigned int)info->gid);
325 printf(" %u", (unsigned int)info->pid);
329 printf(" %u", (unsigned int)info->sid);
333 printf(" %.*s", (int)sizeof(info->comm), info->comm);
339 owner_mt6_print_item_v0(const struct ip6t_owner_info *info, const char *label,
342 if (!(info->match & flag))
344 if (info->invert & flag)
348 switch (info->match & flag) {
351 struct passwd *pwd = getpwuid(info->uid);
358 printf(" %u", (unsigned int)info->uid);
363 struct group *grp = getgrgid(info->gid);
370 printf(" %u", (unsigned int)info->gid);
374 printf(" %u", (unsigned int)info->pid);
378 printf(" %u", (unsigned int)info->sid);
384 owner_mt_print_item(const struct xt_owner_match_info *info, const char *label,
387 if (!(info->match & flag))
389 if (info->invert & flag)
393 switch (info->match & flag) {
395 if (info->uid_min != info->uid_max) {
396 printf(" %u-%u", (unsigned int)info->uid_min,
397 (unsigned int)info->uid_max);
400 const struct passwd *pwd = getpwuid(info->uid_min);
407 printf(" %u", (unsigned int)info->uid_min);
411 if (info->gid_min != info->gid_max) {
412 printf(" %u-%u", (unsigned int)info->gid_min,
413 (unsigned int)info->gid_max);
416 const struct group *grp = getgrgid(info->gid_min);
423 printf(" %u", (unsigned int)info->gid_min);
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);
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);
456 const struct xt_owner_match_info *info = (void *)match->data;
458 owner_mt_print_item(info, "owner socket exists", XT_OWNER_SOCKET, numeric);
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);
466 const struct ipt_owner_info *info = (void *)match->data;
468 owner_mt_print_item_v0(info, "--uid-owner", IPT_OWNER_UID, true);
469 owner_mt_print_item_v0(info, "--gid-owner", IPT_OWNER_GID, true);
470 owner_mt_print_item_v0(info, "--pid-owner", IPT_OWNER_PID, true);
471 owner_mt_print_item_v0(info, "--sid-owner", IPT_OWNER_SID, true);
472 owner_mt_print_item_v0(info, "--cmd-owner", IPT_OWNER_COMM, true);
478 const struct ip6t_owner_info *info = (void *)match->data;
480 owner_mt6_print_item_v0(info, "--uid-owner", IPT_OWNER_UID, true);
481 owner_mt6_print_item_v0(info, "--gid-owner", IPT_OWNER_GID, true);
482 owner_mt6_print_item_v0(info, "--pid-owner", IPT_OWNER_PID, true);
483 owner_mt6_print_item_v0(info, "--sid-owner", IPT_OWNER_SID, true);
488 const struct xt_owner_match_info *info = (void *)match->data;
490 owner_mt_print_item(info, "--socket-exists", XT_OWNER_SOCKET, true);
491 owner_mt_print_item(info, "--uid-owner", XT_OWNER_UID, true);
492 owner_mt_print_item(info, "--gid-owner", XT_OWNER_GID, true);