Lines Matching refs:pcs
261 static void parse_args(int argc, const char **argv, struct pam_cap_s *pcs) in parse_args() argument
266 pcs->debug = 1; in parse_args()
268 pcs->conf_filename = 7 + *argv; in parse_args()
284 struct pam_cap_s pcs; in pam_sm_authenticate() local
287 memset(&pcs, 0, sizeof(pcs)); in pam_sm_authenticate()
288 parse_args(argc, argv, &pcs); in pam_sm_authenticate()
290 retval = pam_get_user(pamh, &pcs.user, NULL); in pam_sm_authenticate()
293 memset(&pcs, 0, sizeof(pcs)); in pam_sm_authenticate()
299 memset(&pcs, 0, sizeof(pcs)); in pam_sm_authenticate()
303 conf_caps = read_capabilities_for_user(pcs.user, in pam_sm_authenticate()
304 pcs.conf_filename in pam_sm_authenticate()
305 ? pcs.conf_filename:USER_CAP_FILE ); in pam_sm_authenticate()
306 memset(&pcs, 0, sizeof(pcs)); in pam_sm_authenticate()
338 struct pam_cap_s pcs; in pam_sm_setcred() local
345 memset(&pcs, 0, sizeof(pcs)); in pam_sm_setcred()
346 parse_args(argc, argv, &pcs); in pam_sm_setcred()
348 retval = pam_get_item(pamh, PAM_USER, (const void **)&pcs.user); in pam_sm_setcred()
349 if ((retval != PAM_SUCCESS) || (pcs.user == NULL) || !(pcs.user[0])) { in pam_sm_setcred()
354 retval = set_capabilities(&pcs); in pam_sm_setcred()
355 memset(&pcs, 0, sizeof(pcs)); in pam_sm_setcred()