summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-08-28 02:45:12 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-08-28 02:45:12 -0400
commit9a91e4bcfa0cd55e338a8ede881f2529e7acfb47 (patch)
tree370ed42ff072e6cba310e63547237459fbf642a1
parent71bcaf19980f65b4b68e45b2d0fe4c77028c56ab (diff)
downloadselinux-policy-9a91e4bcfa0cd55e338a8ede881f2529e7acfb47.tar.gz
add file type transition for xdgfiles
-rw-r--r--src/file/homefile/userhomefile/xdgfile.cil15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/file/homefile/userhomefile/xdgfile.cil b/src/file/homefile/userhomefile/xdgfile.cil
index b10dd2c..cb79cc6 100644
--- a/src/file/homefile/userhomefile/xdgfile.cil
+++ b/src/file/homefile/userhomefile/xdgfile.cil
@@ -17,6 +17,9 @@
(block config
(block user
(block home
+ (macro user_home_file_type_transition_file ((type ARG1) (class ARG2) (name ARG3))
+ (call .user.home.home_file_type_transition_file (ARG1 file ARG2 ARG3)))
+
(blockinherit .file.home.user.template)
(filecon "HOME_DIR/\.config" dir file_context)
@@ -25,6 +28,9 @@
(block cache
(block user
(block home
+ (macro user_home_file_type_transition_file ((type ARG1) (class ARG2) (name ARG3))
+ (call .user.home.home_file_type_transition_file (ARG1 file ARG2 ARG3)))
+
(blockinherit .file.home.user.template)
(filecon "HOME_DIR/\.cache" dir file_context)
@@ -33,6 +39,9 @@
(block share
(block user
(block home
+ (macro user_home_file_type_transition_file ((type ARG1) (class ARG2) (name ARG3))
+ (call .user.home.home_file_type_transition_file (ARG1 file ARG2 ARG3)))
+
(blockinherit .file.home.user.template)
(filecon "HOME_DIR/\.local/share" dir file_context)
@@ -41,6 +50,9 @@
(block state
(block user
(block home
+ (macro user_home_file_type_transition_file ((type ARG1) (class ARG2) (name ARG3))
+ (call .user.home.home_file_type_transition_file (ARG1 file ARG2 ARG3)))
+
(blockinherit .file.home.user.template)
(filecon "HOME_DIR/\.local/state" dir file_context)
@@ -49,6 +61,9 @@
(block bin
(block user
(block home
+ (macro user_home_file_type_transition_file ((type ARG1) (class ARG2) (name ARG3))
+ (call .user.home.home_file_type_transition_file (ARG1 file ARG2 ARG3)))
+
(blockinherit .file.exec.template)
(filecon "HOME_DIR/\.local/bin" dir file_context)