Home | History | Annotate | Download | only in extensions

Lines Matching refs:info

138 	struct ipt_owner_info *info = cb->data;
151 info->invert |= IPT_OWNER_UID;
152 info->match |= IPT_OWNER_UID;
153 info->uid = id;
161 info->invert |= IPT_OWNER_GID;
162 info->match |= IPT_OWNER_GID;
163 info->gid = id;
167 info->invert |= IPT_OWNER_PID;
168 info->match |= IPT_OWNER_PID;
172 info->invert |= IPT_OWNER_SID;
173 info->match |= IPT_OWNER_SID;
177 info->invert |= IPT_OWNER_COMM;
178 info->match |= IPT_OWNER_COMM;
185 struct ip6t_owner_info *info = cb->data;
198 info->invert |= IP6T_OWNER_UID;
199 info->match |= IP6T_OWNER_UID;
200 info->uid = id;
208 info->invert |= IP6T_OWNER_GID;
209 info->match |= IP6T_OWNER_GID;
210 info->gid = id;
214 info->invert |= IP6T_OWNER_PID;
215 info->match |= IP6T_OWNER_PID;
219 info->invert |= IP6T_OWNER_SID;
220 info->match |= IP6T_OWNER_SID;
243 struct xt_owner_match_info *info = cb->data;
256 info->invert |= XT_OWNER_UID;
257 info->match |= XT_OWNER_UID;
258 info->uid_min = from;
259 info->uid_max = to;
267 info->invert |= XT_OWNER_GID;
268 info->match |= XT_OWNER_GID;
269 info->gid_min = from;
270 info->gid_max = to;
274 info->invert |= XT_OWNER_SOCKET;
275 info->match |= XT_OWNER_SOCKET;
289 owner_mt_print_item_v0(const struct ipt_owner_info *info, const char *label,
292 if (!(info->match & flag))
294 if (info->invert & flag)
298 switch (info->match & flag) {
301 struct passwd *pwd = getpwuid(info->uid);
308 printf(" %u", (unsigned int)info->uid);
313 struct group *grp = getgrgid(info->gid);
320 printf(" %u", (unsigned int)info->gid);
324 printf(" %u", (unsigned int)info->pid);
328 printf(" %u", (unsigned int)info->sid);
332 printf(" %.*s", (int)sizeof(info->comm), info->comm);
338 owner_mt6_print_item_v0(const struct ip6t_owner_info *info, const char *label,
341 if (!(info->match & flag))
343 if (info->invert & flag)
347 switch (info->match & flag) {
350 struct passwd *pwd = getpwuid(info->uid);
357 printf(" %u", (unsigned int)info->uid);
362 struct group *grp = getgrgid(info->gid);
369 printf(" %u", (unsigned int)info->gid);
373 printf(" %u", (unsigned int)info->pid);
377 printf(" %u", (unsigned int)info->sid);
383 owner_mt_print_item(const struct xt_owner_match_info *info, const char *label,
386 if (!(info->match & flag))
388 if (info->invert & flag)
392 switch (info->match & flag) {
394 if (info->uid_min != info->uid_max) {
395 printf(" %u-%u", (unsigned int)info->uid_min,
396 (unsigned int)info->uid_max);
399 const struct passwd *pwd = getpwuid(info->uid_min);
406 printf(" %u", (unsigned int)info->uid_min);
410 if (info->gid_min != info->gid_max) {
411 printf(" %u-%u", (unsigned int)info->gid_min,
412 (unsigned int)info->gid_max);
415 const struct group *grp = getgrgid(info->gid_min);
422 printf(" %u", (unsigned int)info->gid_min);
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);
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);
455 const struct xt_owner_match_info *info = (void *)match->data;
457 owner_mt_print_item(info, "owner socket exists", XT_OWNER_SOCKET, numeric);
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);
465 const struct ipt_owner_info *info = (void *)match->data;
467 owner_mt_print_item_v0(info, "--uid-owner", IPT_OWNER_UID, true);
468 owner_mt_print_item_v0(info, "--gid-owner", IPT_OWNER_GID, true);
469 owner_mt_print_item_v0(info, "--pid-owner", IPT_OWNER_PID, true);
470 owner_mt_print_item_v0(info, "--sid-owner", IPT_OWNER_SID, true);
471 owner_mt_print_item_v0(info, "--cmd-owner", IPT_OWNER_COMM, true);
477 const struct ip6t_owner_info *info = (void *)match->data;
479 owner_mt6_print_item_v0(info, "--uid-owner", IPT_OWNER_UID, true);
480 owner_mt6_print_item_v0(info, "--gid-owner", IPT_OWNER_GID, true);
481 owner_mt6_print_item_v0(info, "--pid-owner", IPT_OWNER_PID, true);
482 owner_mt6_print_item_v0(info, "--sid-owner", IPT_OWNER_SID, true);
487 const struct xt_owner_match_info *info = (void *)match->data;
489 owner_mt_print_item(info, "--socket-exists", XT_OWNER_SOCKET, true);
490 owner_mt_print_item(info, "--uid-owner", XT_OWNER_UID, true);
491 owner_mt_print_item(info, "--gid-owner", XT_OWNER_GID, true);