gpt4 book ai didi

linux - 为什么 bash 在通过 unshare 运行时无法 fork 任何进程?

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:15:20 25 4
gpt4 key购买 nike

<分区>

我正在使用 Arch Linux,并尝试做一些关于 linux 命名空间的实验。我使用以下命令但没有让 bash 工作。

xtricman⚓ArchVirtual⏺️~🤐unshare -muinpUC --propagation slave --setgroups deny /usr/bin/bash
Could not get property: Access denied
nobody⚓⏺️~🤐ls
bash: fork: Cannot allocate memory
nobody⚓⏺️~🤐

然后No external commands can be run by the shell,谁能给我解释一下原因?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com