summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--poetry_restrict_plugin/plugin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/poetry_restrict_plugin/plugin.py b/poetry_restrict_plugin/plugin.py
index 51c99ff..13dfb0f 100644
--- a/poetry_restrict_plugin/plugin.py
+++ b/poetry_restrict_plugin/plugin.py
@@ -90,6 +90,9 @@ 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)
+
# Black cache access
ruleset.allow(
*existing_paths((os.path.expanduser("~/.cache/black"),)),