Lines Matching defs:pw
40 BOOL denysome_check(struct passwd *pw, int ngroups, gid_t *groups)
49 result = se_access_check(sd, pw->pw_uid, pw->pw_gid,
54 len1 = (int)strlen(pw->pw_name) - strlen("user1");
55 len2 = (int)strlen(pw->pw_name) - strlen("user3");
57 if ((strncmp("user1", &pw->pw_name[MAX(len1, 0)],
59 (strncmp("user3", &pw->pw_name[MAX(len2, 0)],
63 pw->pw_name);
67 printf("FAIL: access denied for %s\n", pw->pw_name);
72 pw->pw_name);