Skip to content

Commit 4ce98a9

Browse files
reddevillgdengbo11
authored andcommitted
fix: Don't mount /etc/passwd and /etc/group in build mode
In build mode someone may rely on user/group in base environment Signed-off-by: reddevillg <reddevillg@gmail.com>
1 parent 6a94b99 commit 4ce98a9

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

libs/linglong/src/linglong/runtime/container_builder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ auto ContainerBuilder::configureBuildContainer(PreparedContainer &prepared,
396396
LINGLONG_TRACE("configure build container");
397397

398398
prepared.cfgBuilder.setBasePath(options.basePath, false)
399-
.bindUserGroup()
400399
.forwardDefaultEnv()
401400
.appendEnv("LINYAPS_INIT_SINGLE_MODE", "1")
402401
.disableUserNamespace()

0 commit comments

Comments
 (0)