Skip to content

Commit 8e04ee7

Browse files
committed
fix: correct xdp document fuse mount option
Signed-off-by: reddevillg <reddevillg@gmail.com>
1 parent 657aaac commit 8e04ee7

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

libs/oci-cfg-generators/src/linglong/oci-cfg-generators/container_cfg_builder.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,11 @@ utils::error::Result<void> ContainerCfgBuilder::buildXDGRuntime() noexcept
348348
environment["XDG_RUNTIME_DIR"] = *containerXDGRuntimeDir;
349349

350350
if (xdpOption) {
351-
runMount->emplace_back(Mount{ .destination = *containerXDGRuntimeDir / "doc",
352-
.options = string_list{ "bind" },
353-
.source = xdpOption->docMountPoint / "by-app" / appId,
354-
.type = "bind" });
351+
runMount->emplace_back(
352+
Mount{ .destination = *containerXDGRuntimeDir / "doc",
353+
.options = string_list{ "bind", "nosuid", "nodev", "realtime" },
354+
.source = xdpOption->docMountPoint / "by-app" / appId,
355+
.type = "bind" });
355356
}
356357

357358
return LINGLONG_OK;

0 commit comments

Comments
 (0)