Lines Matching refs:dirname

105 static void warn_not_encrypted(int fd, CredentialSecretFlags flags, const char *dirname, const char…  in warn_not_encrypted()  argument
109 assert(dirname); in warn_not_encrypted()
118 dirname, filename); in warn_not_encrypted()
121 dirname, filename); in warn_not_encrypted()
128 const char *dirname, in make_credential_host_secret() argument
174 warn_not_encrypted(fd, flags, dirname, fn); in make_credential_host_secret()
221 const char *dirname, *filename; in get_credential_host_secret() local
243 dirname = _dirname; in get_credential_host_secret()
246 dirname = "/var/lib/systemd"; in get_credential_host_secret()
250 mkdir_parents(dirname, 0755); in get_credential_host_secret()
251 dfd = open_mkdir_at(AT_FDCWD, dirname, O_CLOEXEC, 0755); in get_credential_host_secret()
253 return log_debug_errno(dfd, "Failed to create or open directory '%s': %m", dirname); in get_credential_host_secret()
258 return log_debug_errno(r, "Failed to check directory '%s': %m", dirname); in get_credential_host_secret()
261 … "Directory '%s' is on a temporary file system, refusing.", dirname); in get_credential_host_secret()
273 … "All attempts to create secret store in %s failed.", dirname); in get_credential_host_secret()
279 … "Failed to open %s/%s: %m", dirname, filename); in get_credential_host_secret()
282 … r = make_credential_host_secret(dfd, machine_id, flags, dirname, filename, ret, ret_size); in get_credential_host_secret()
285 dirname, filename); in get_credential_host_secret()
290 dirname, filename); in get_credential_host_secret()
295 … return log_debug_errno(errno, "Failed to stat %s/%s: %m", dirname, filename); in get_credential_host_secret()
299 … return log_debug_errno(r, "%s/%s is not a regular file: %m", dirname, filename); in get_credential_host_secret()
306 dirname, filename); in get_credential_host_secret()
311 dirname, filename); in get_credential_host_secret()
315 "%s/%s is too small, refusing.", dirname, filename); in get_credential_host_secret()
318 "%s/%s is too big, refusing.", dirname, filename); in get_credential_host_secret()
327 "Failed to read %s/%s: %m", dirname, filename); in get_credential_host_secret()
330 "Failed to read %s/%s: %m", dirname, filename); in get_credential_host_secret()
335 warn_not_encrypted(fd, flags, dirname, filename); in get_credential_host_secret()
363 "Failed to flock %s/%s: %m", dirname, filename); in get_credential_host_secret()
367 … return log_debug_errno(errno, "Failed to stat %s/%s: %m", dirname, filename); in get_credential_host_secret()
373 dirname, filename); in get_credential_host_secret()
375 … return log_debug_errno(errno, "Failed to unlink %s/%s: %m", dirname, filename); in get_credential_host_secret()