Reid PriedhorskyLos Alamos National Laboratory, Michael JenningsLos Alamos National Laboratory, Megan Phinney
{"title":"Zero-consistency root emulation for unprivileged container image build","authors":"Reid PriedhorskyLos Alamos National Laboratory, Michael JenningsLos Alamos National Laboratory, Megan Phinney","doi":"arxiv-2405.06085","DOIUrl":null,"url":null,"abstract":"Do Linux distribution package managers need the privileged operations they\nrequest to actually happen? Apparently not, at least for building container\nimages for HPC applications. We use this observation to implement a root\nemulation mode using a Linux seccomp filter that intercepts some privileged\nsystem calls, does nothing, and returns success to the calling program. This\napproach provides no consistency whatsoever but appears sufficient to build all\nDockerfiles we examined, simplifying fully-unprivileged workflows needed for\nHPC application containers.","PeriodicalId":501333,"journal":{"name":"arXiv - CS - Operating Systems","volume":"40 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-05-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Operating Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2405.06085","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Do Linux distribution package managers need the privileged operations they
request to actually happen? Apparently not, at least for building container
images for HPC applications. We use this observation to implement a root
emulation mode using a Linux seccomp filter that intercepts some privileged
system calls, does nothing, and returns success to the calling program. This
approach provides no consistency whatsoever but appears sufficient to build all
Dockerfiles we examined, simplifying fully-unprivileged workflows needed for
HPC application containers.
Linux 发行版软件包管理器需要实际执行它们所请求的特权操作吗?显然不需要,至少在为高性能计算应用构建容器图像时不需要。我们利用这一观察结果,使用 Linux seccomp 过滤器实现了一种根模拟模式,该过滤器拦截一些特权系统调用,什么也不做,然后向调用程序返回成功。这种方法没有提供任何一致性,但似乎足以构建我们检查过的所有Docker文件,简化了高性能计算应用容器所需的完全非特权工作流程。