Lines Matching refs:ownerinfo
58 struct ip6t_owner_info *ownerinfo = (struct ip6t_owner_info *)(*match)->data;
68 ownerinfo->uid = pwd->pw_uid;
70 ownerinfo->uid = strtoul(optarg, &end, 0);
75 ownerinfo->invert |= IP6T_OWNER_UID;
76 ownerinfo->match |= IP6T_OWNER_UID;
83 ownerinfo->gid = grp->gr_gid;
85 ownerinfo->gid = strtoul(optarg, &end, 0);
90 ownerinfo->invert |= IP6T_OWNER_GID;
91 ownerinfo->match |= IP6T_OWNER_GID;
97 ownerinfo->pid = strtoul(optarg, &end, 0);
101 ownerinfo->invert |= IP6T_OWNER_PID;
102 ownerinfo->match |= IP6T_OWNER_PID;
108 ownerinfo->sid = strtoul(optarg, &end, 0);
112 ownerinfo->invert |= IP6T_OWNER_SID;
113 ownerinfo->match |= IP6T_OWNER_SID;
120 if(strlen(optarg) > sizeof(ownerinfo->comm))
121 exit_error(PARAMETER_PROBLEM, "OWNER CMD `%s' too long, max %d characters", optarg, sizeof(ownerinfo->comm));
123 strncpy(ownerinfo->comm, optarg, sizeof(ownerinfo->comm));
124 ownerinfo->comm[sizeof(ownerinfo->comm)-1] = '\0';
127 ownerinfo->invert |= IP6T_OWNER_COMM;
128 ownerinfo->match |= IP6T_OWNER_COMM;