Lines Matching defs:pcs
211 static void parse_args(int argc, const char **argv, struct pam_cap_s *pcs)
219 pcs->debug = 1;
221 pcs->conf_filename = 7 + *argv;
233 struct pam_cap_s pcs;
236 memset(&pcs, 0, sizeof(pcs));
238 parse_args(argc, argv, &pcs);
240 retval = pam_get_user(pamh, &pcs.user, NULL);
244 memset(&pcs, 0, sizeof(pcs));
250 memset(&pcs, 0, sizeof(pcs));
255 read_capabilities_for_user(pcs.user,
256 pcs.conf_filename
257 ? pcs.conf_filename:USER_CAP_FILE );
259 memset(&pcs, 0, sizeof(pcs));
287 struct pam_cap_s pcs;
294 memset(&pcs, 0, sizeof(pcs));
296 parse_args(argc, argv, &pcs);
298 retval = pam_get_item(pamh, PAM_USER, (const void **)&pcs.user);
299 if ((retval != PAM_SUCCESS) || (pcs.user == NULL) || !(pcs.user[0])) {
305 retval = set_capabilities(&pcs);
307 memset(&pcs, 0, sizeof(pcs));