Skip to content

Commit 16ba8ca

Browse files
author
Gareth Widlansky
committed
don't use ambient authority
Signed-off-by: Gareth Widlansky <gareth.widlansky@proton.me>
1 parent 64ef4c4 commit 16ba8ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/lib/src/bootloader.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::process::Command;
44
use anyhow::{anyhow, bail, Context, Result};
55
use bootc_utils::CommandRunExt;
66
use camino::Utf8Path;
7-
use cap_std_ext::cap_std::ambient_authority;
87
use cap_std_ext::cap_std::fs::Dir;
98
use cap_std_ext::dirext::CapStdExtDirExt;
109
use fn_error_context::context;
@@ -102,7 +101,9 @@ pub(crate) fn install_systemd_boot(
102101
let path = esp_path.join(SYSTEMD_AUTOENROLL);
103102
create_dir_all(&path)?;
104103

105-
let keys_dir = Dir::open_ambient_dir(&path, ambient_authority())
104+
let keys_dir = esp_mount
105+
.fd
106+
.open_dir(SYSTEMD_AUTOENROLL)
106107
.with_context(|| format!("Opening {path}"))?;
107108
for filename in keys.iter() {
108109
let p = path.join(filename.clone());

0 commit comments

Comments
 (0)