From ee323d3b9a70158481eb5ab0235a63aaab353822 Mon Sep 17 00:00:00 2001 From: bauen1 Date: Tue, 26 May 2020 18:59:37 +0200 Subject: [PATCH] filesystem: pathcon for matching tracefs mount Prevent restorecon from trying to relabel /sys/fs/tracing . Signed-off-by: bauen1 --- policy/modules/kernel/filesystem.fc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/kernel/filesystem.fc b/policy/modules/kernel/filesystem.fc index a5d976863..8cdca1855 100644 --- a/policy/modules/kernel/filesystem.fc +++ b/policy/modules/kernel/filesystem.fc @@ -20,6 +20,8 @@ /sys/fs/pstore -d gen_context(system_u:object_r:pstore_t,s0) /sys/fs/pstore/.* <> +/sys/kernel/tracing(/.*)? <> + ifdef(`distro_debian',` /run/shm -d gen_context(system_u:object_r:tmpfs_t,s0) /run/shm/.* <>