From 5b85f31124dfc511d1818ee3add9db3a0d7f55eb Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Sun, 24 Jun 2018 17:56:09 +0800 Subject: [PATCH] xdg: Introduce xdg_search_cache_dirs --- policy/modules/system/xdg.if | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/policy/modules/system/xdg.if b/policy/modules/system/xdg.if index 1bff4ae01..11fc43069 100644 --- a/policy/modules/system/xdg.if +++ b/policy/modules/system/xdg.if @@ -63,6 +63,26 @@ interface(`xdg_data_content',` userdom_user_home_content($1) ') +######################################## +## +## Search through the xdg cache home directories +## +## +## +## Domain allowed access. +## +## +# +interface(`xdg_search_cache_dirs',` + gen_require(` + type xdg_cache_t; + ') + + search_dirs_pattern($1, xdg_cache_t, xdg_cache_t) + + userdom_search_user_home_dirs($1) +') + ######################################## ## ## Read the xdg cache home files