aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2024-08-12 17:52:03 +0200
committerGravatar Johannes Christ <[email protected]>2024-08-12 17:52:03 +0200
commit743e7735e73e3a6e9060478ed6c2b483cc9d1885 (patch)
tree1b4090e0a1c38529ff7e86148511083c47925579
parentBegin v0.1.0a7 development (diff)
Allow proper access for /dev/shm
Operations with `multiprocessing` would fail previously.
-rw-r--r--poetry_restrict_plugin/plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poetry_restrict_plugin/plugin.py b/poetry_restrict_plugin/plugin.py
index 13dfb0f..998743f 100644
--- a/poetry_restrict_plugin/plugin.py
+++ b/poetry_restrict_plugin/plugin.py
@@ -90,8 +90,8 @@ class RestrictPlugin(Plugin):
# Allow determining mime types. Used for ruamel.yaml installation.
ruleset.allow("/etc/mime.types", rules=FSAccess.READ_FILE)
- # Allow reading and writing shared memory
- ruleset.allow("/dev/shm", rules=FSAccess.READ_FILE | FSAccess.WRITE_FILE | FSAccess.READ_DIR)
+ # Allow working with shared memory
+ ruleset.allow("/dev/shm")
# Black cache access
ruleset.allow(