Lines Matching full:uid
78 printf("# ERROR # Invalid uid '%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)
205 pw = getpwuid(uid);
206 printf("%s %4o %4o %s %d %s %d\n", name, mode, mode, pw->pw_name, uid,
211 static int pass_rule(const perm_rule_t *pr, mode_t mode, uid_t uid, gid_t gid)
216 (pr->min_uid <= uid) && (pr->max_uid >= uid))
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);