Lines Matching defs:service
59 * Validate a service name.
150 * service and facility, or -1 if a system error occurred or a syntax
155 const char *service,
183 /* check service name if necessary */
185 strcmp(wordv[i++], service) != 0) {
210 "%s(%d): missing or invalid service name",
342 const char *service,
372 ret = openpam_parse_chain(pamh, service, facility,
378 * Locates the policy file for a given service and reads the given chains
382 * service and facility, or -1 if a system error occurred or a syntax
387 const char *service,
399 if (strchr(service, '/') != NULL) {
400 if ((p = strrchr(service, '.')) != NULL && strcmp(p, ".conf") == 0)
404 ret = openpam_load_file(pamh, service, facility,
405 service, style);
414 len = strlcat(filename, service, sizeof filename);
423 ret = openpam_load_file(pamh, service, facility,
444 * Configure a service
449 const char *service)
454 ENTERS(service);
455 if (!valid_service_name(service)) {
456 openpam_log(PAM_LOG_ERROR, "invalid service name");
459 if (openpam_load_chain(pamh, service, PAM_FACILITY_ANY) < 0) {