Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] Unable to access files when useDocker is true and SELinux is enabled

オープン
#991 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@kay-schecker がすでに取り組んでいます。

2025年9月9日 から。

評価

この issue はまだ評価されていません。

説明

bug

🐛 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:

  1. Enable SELinux on your linux workstation
  2. Check out your project into your home directory.
  3. 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: use ls -lZ to see the SELinux markings) The markings should NOT mention container`. This would imply that the whole directory was changed to use container-friendly marking.
  4. Attempt to generate code from an api json file.
  5. 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分
マージ済み PR(30日)
6

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenAPITools/openapi-generator-cli のほかの issue

OpenAPITools/openapi-generator-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。