summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2024-08-10 11:01:15 +0200
committerGravatar Johannes Christ <[email protected]>2024-08-10 11:01:15 +0200
commit4de6a95f11448e1be807d5bf30ce22faafea8c52 (patch)
treef7fcf9c84a8a7b68991015dceabfbd15b9108ea0
parentAllow access to black cache (diff)
Allow shared memory accessv0.1.0a6
-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"),)),