Searched refs:identity_fd (Results 1 – 1 of 1) sorted by relevance
515 _cleanup_close_ int identity_fd = -1; in read_identity_file() local522 … identity_fd = openat(root_fd, ".identity", O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW|O_NONBLOCK); in read_identity_file()523 if (identity_fd < 0) in read_identity_file()526 r = fd_verify_regular(identity_fd); in read_identity_file()530 identity_file = take_fdopen(&identity_fd, "r"); in read_identity_file()546 _cleanup_close_ int identity_fd = -1; in write_identity_file() local563 … identity_fd = openat(root_fd, fn, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW, 0600); in write_identity_file()564 if (identity_fd < 0) in write_identity_file()567 identity_file = take_fdopen(&identity_fd, "w"); in write_identity_file()