From 1e9877ff7ea0b40b63e443da5ebf8c955cf50330 Mon Sep 17 00:00:00 2001 From: BigfootACA Date: Fri, 31 May 2024 16:58:09 +0800 Subject: [PATCH] builder: build: filesystem.py: allow add or remove files to /var Signed-off-by: BigfootACA --- builder/build/filesystem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/build/filesystem.py b/builder/build/filesystem.py index 0b0834b..557620c 100644 --- a/builder/build/filesystem.py +++ b/builder/build/filesystem.py @@ -75,8 +75,9 @@ def check_allowed(path: str, action: str): Why these folder is writable 1. /etc/ is used for administrator configs 2. /boot/ is used for system boot up, you can put bootloaders configs into this folder + 3. /var/ is used for daemons runtime states """ - if not path.startswith(("/etc/", "/boot/")): + if not path.startswith(("/etc/", "/boot/", "/var/")): raise ArchBuilderConfigError(f"{action} {path} is not allowed")