Can we prevent Python from importing sitecustomize.py?
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 30/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- python
研究方向
該 issue 沒有指出任何儲存庫檔案或測試進入點。首先在 Ubuntu 沙箱中重現 Python 2.7 的啟動過程,並檢查 sitecustomize.py 與 AppArmor 如何互動。完成的標準是:沙箱避免匯入系統的 sitecustomize.py,且不再觸發 apport_python_hook 失敗。
由索引模型根據 Issue 內容生成。
描述
On Ubuntu, sitecustomize.py is linked to /etc/python2.7/sitecustomize.py, which tries to import apport_python_hook. This fails due to the AppArmor profile, but I would rather not import it at all.
I tried writing an empty sitecustomize.py into the sandbox directory, but it didn't get imported, not sure why.
- 主要語言
- Python
- 星號
- 477
- 分支
- 83
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 6
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
openedx/codejail 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 2/5 1-3 小時 新手友好度 50/100
-
Stop using global state to store configuration options可能重新可做 關聯的 PR 已關閉且未合併。 未關閉code health
難度 5/5 一週以上 新手友好度 25/100
-
難度 3/5 1-2 天 新手友好度 30/100
-
難度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 64/100
-
難度 2/5 1-3 小時 新手友好度 76/100
btclib-org/btclib-wallet#1045 ·
維護者通常 1 天內回覆
-
area-templates triage:bot-seen triage:needs-human
難度 2/5 1-3 小時 新手友好度 75/100
microsoft/aspire#22356 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
[Train] An elastic ScalingConfig(num_workers=(0, 0)) is accepted and the run waits forever可能已有人在做 @wguo7 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
ray-project/ray#68217 ·
維護者通常 2 天內回覆