Implement guarded Linux updater runtime and compatible baseline tooling
Rust development slice / linux (push) Failing after 8s
Rust development slice / linux (push) Failing after 8s
This commit is contained in:
@@ -87,7 +87,12 @@ impl RetainedSet {
|
||||
"UPDATE_RETAINED_CODE_PATH"
|
||||
);
|
||||
let parent = spec.path.parent().context("UPDATE_RETAINED_PARENT")?;
|
||||
let directory = Directory::open(parent, spec.parent_uid, false)?;
|
||||
let directory = if parent.starts_with("/var/lib/rmm-agent-remote") {
|
||||
ensure!(spec.parent_uid == 993, "UPDATE_RETAINED_AGENT_OWNER");
|
||||
Directory::open_agent_state(parent)?
|
||||
} else {
|
||||
Directory::open(parent, spec.parent_uid, false)?
|
||||
};
|
||||
let file = std::fs::OpenOptions::new()
|
||||
.read(true)
|
||||
.custom_flags(libc::O_NOFOLLOW | libc::O_NONBLOCK | libc::O_CLOEXEC)
|
||||
|
||||
Reference in New Issue
Block a user