Home
last modified time | relevance | path

Searched refs:target_dir_fd (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/core/
Dimport-creds.c53 int target_dir_fd; member
61 c->target_dir_fd = safe_close(c->target_dir_fd); in import_credentials_context_free()
69 if (c->target_dir_fd >= 0) in acquire_encrypted_credential_directory()
70 return c->target_dir_fd; in acquire_encrypted_credential_directory()
76 … c->target_dir_fd = open(ENCRYPTED_SYSTEM_CREDENTIALS_DIRECTORY, O_RDONLY|O_DIRECTORY|O_CLOEXEC); in acquire_encrypted_credential_directory()
77 if (c->target_dir_fd < 0) in acquire_encrypted_credential_directory()
80 return c->target_dir_fd; in acquire_encrypted_credential_directory()
83 static int open_credential_file_for_write(int target_dir_fd, const char *dir_name, const char *n) { in open_credential_file_for_write() argument
86 assert(target_dir_fd >= 0); in open_credential_file_for_write()
90 fd = openat(target_dir_fd, n, O_WRONLY|O_CLOEXEC|O_CREAT|O_EXCL|O_NOFOLLOW, 0400); in open_credential_file_for_write()
[all …]