Home | History | Annotate | Download | only in extensions

Lines Matching refs:cb

136 static void owner_mt_parse_v0(struct xt_option_call *cb)
138 struct ipt_owner_info *info = cb->data;
143 xtables_option_parse(cb);
144 switch (cb->entry->id) {
146 if ((pwd = getpwnam(cb->arg)) != NULL)
148 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1))
149 xtables_param_act(XTF_BAD_VALUE, "owner", "--uid-owner", cb->arg);
150 if (cb->invert)
156 if ((grp = getgrnam(cb->arg)) != NULL)
158 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1))
159 xtables_param_act(XTF_BAD_VALUE, "owner", "--gid-owner", cb->arg);
160 if (cb->invert)
166 if (cb->invert)
171 if (cb->invert)
176 if (cb->invert)
183 static void owner_mt6_parse_v0(struct xt_option_call *cb)
185 struct ip6t_owner_info *info = cb->data;
190 xtables_option_parse(cb);
191 switch (cb->entry->id) {
193 if ((pwd = getpwnam(cb->arg)) != NULL)
195 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1))
196 xtables_param_act(XTF_BAD_VALUE, "owner", "--uid-owner", cb->arg);
197 if (cb->invert)
203 if ((grp = getgrnam(cb->arg)) != NULL)
205 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1))
206 xtables_param_act(XTF_BAD_VALUE, "owner", "--gid-owner", cb->arg);
207 if (cb->invert)
213 if (cb->invert)
218 if (cb->invert)
241 static void owner_mt_parse(struct xt_option_call *cb)
243 struct xt_owner_match_info *info = cb->data;
248 xtables_option_parse(cb);
249 switch (cb->entry->id) {
251 if ((pwd = getpwnam(cb->arg)) != NULL)
254 owner_parse_range(cb->arg, &from, &to, "--uid-owner");
255 if (cb->invert)
262 if ((grp = getgrnam(cb->arg)) != NULL)
265 owner_parse_range(cb->arg, &from, &to, "--gid-owner");
266 if (cb->invert)
273 if (cb->invert)
280 static void owner_mt_check(struct xt_fcheck_call *cb)
282 if (cb->xflags == 0)