Home | History | Annotate | Download | only in fstest

Lines Matching refs:gid

92         printf("# ERROR # Invalid gid '%s' reading line %d\n", str, line_num);
200 static void print_new_rule(const char *name, mode_t mode, uid_t uid, gid_t gid)
204 gr = getgrgid(gid);
207 gr->gr_name, gid);
211 static int pass_rule(const perm_rule_t *pr, mode_t mode, uid_t uid, gid_t gid)
215 (pr->min_gid <= gid) && (pr->max_gid >= gid) &&
223 static int validate_file(const char *name, mode_t mode, uid_t uid, gid_t gid)
232 if (!pass_rule(pr, mode, uid, gid))
245 print_new_rule(name, mode, uid, gid);
255 if (!pass_rule(pr, mode, uid, gid))
266 if (!pass_rule(pr, mode, uid, gid))
278 print_new_rule(name, mode, uid, gid);
284 static int validate_link(const char *name, mode_t mode, uid_t uid, gid_t gid)
294 if (!pass_rule(pr, mode, uid, gid))
305 print_new_rule(name, mode, uid, gid);
312 static int validate_dir(const char *name, mode_t mode, uid_t uid, gid_t gid)
321 if (!pass_rule(pr, mode, uid, gid))
334 print_new_rule(name, mode, uid, gid);
341 if (!pass_rule(pr, mode, uid, gid))
353 print_new_rule(name, mode, uid, gid);