From 8c3f45b5f116912848a6c093bfb853a3e5d8a724 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Sep 03 2021 09:34:44 +0000 Subject: restorecon.py: exclude more paths It doesn't make sense to run restorecon on /sys/ /proc/ and /memfd: --- diff --git a/plugins/src/restorecon.py b/plugins/src/restorecon.py index e3044c7..9594c0d 100644 --- a/plugins/src/restorecon.py +++ b/plugins/src/restorecon.py @@ -39,7 +39,7 @@ def customizable(target): # List of path prefixes for which this plugin is not executed -excluded_paths = ["/sys/fs"] +excluded_paths = ["/sys/", "/proc/", "/memfd:"] # Test if the specified path starts with some excluded prefix def excluded_path(target_path): for path in excluded_paths: