From 4de6a95f11448e1be807d5bf30ce22faafea8c52 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sat, 10 Aug 2024 11:01:15 +0200 Subject: Allow shared memory access --- poetry_restrict_plugin/plugin.py | 3 +++ 1 file changed, 3 insertions(+) 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"),)), -- cgit v1.2.3