[BUG] Unable to access files when useDocker is true and SELinux is enabled
@kay-schecker 已经在做这个了。
开始于 2025年9月9日。
评估
这个 Issue 还没有评估数据。
描述
🐛 Bug Report:
Describe the bug
The OCI container running the generator is unable to access the input files and output directory when they are in a home directory. The volume parameters are missing the :Z at the end of the parameter to enable access when SELinux is enabled. The build fails because the docker container cannot find the spec file, even though it is properly configured.
Steps to Reproduce
Steps to reproduce the behavior:
- Enable SELinux on your linux workstation
- Check out your project into your home directory.
- Don't override default SELinux tags on your work directory. Leave them marked as
unconfined_u:object_r:user_home_t, or however they are marked by default in your home directory. (Hint: usels -lZ to see the SELinux markings) The markings should NOT mentioncontainer`. This would imply that the whole directory was changed to use container-friendly marking. - Attempt to generate code from an api json file.
- See error. The build should complain that the spec file was not found.
Expected behavior
Code should be generated successfully.
Operation System (please complete the following information):
- OS: RHEL 9
- Version 9.6
Package System (please complete the following information):
- Node v22.12.0
Additional context
The volume mount parameters should have a :Z at the end of the mapping (-v "<source file>:/local/input-spec:Z"). All volume mappings need this parameter.
- 主要语言
- TypeScript
- 星标
- 2k
- 派生
- 208
- 平均合并
- 7 小时 12 分钟
- 30 天内合并 PR
- 6
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenAPITools/openapi-generator-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
bug
OpenAPITools/openapi-generator-cli#1213 · 已指派 1 人 ·
-
bug
OpenAPITools/openapi-generator-cli#1190 · 已指派 1 人 ·
-
bug
OpenAPITools/openapi-generator-cli#1138 · 1 条评论 · 已指派 1 人 ·
-
bug
OpenAPITools/openapi-generator-cli#1094 · 1 条评论 · 已指派 1 人 ·
查看 OpenAPITools/openapi-generator-cli 的全部 Issue
相似的 Issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
Crush 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
catppuccin/catppuccin#3125 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ElementsProject/cln-application#167 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Quantco/pnpm-licenses#17 ·
-
难度 2/5 1-3 小时 新手友好度 75/100