From: jason@perfinion.com (Jason Zaman)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 2/5] xdg: filetrans should not add filetrans from user_home_dir
Date: Sun, 24 Jun 2018 17:56:08 +0800 [thread overview]
Message-ID: <20180624095611.48338-2-jason@perfinion.com> (raw)
In-Reply-To: <20180624095611.48338-1-jason@perfinion.com>
SELinux 2.8 is stricter with duplicate filetrans and these rules cause
problems if a domain needs more than one xdg dir.
Domains should call xdg_generic_user_home_dir_filetrans_data directly if
needed.
---
policy/modules/system/xdg.if | 4 ----
1 file changed, 4 deletions(-)
diff --git a/policy/modules/system/xdg.if b/policy/modules/system/xdg.if
index f1439e2c..1bff4ae0 100644
--- a/policy/modules/system/xdg.if
+++ b/policy/modules/system/xdg.if
@@ -146,7 +146,6 @@ interface(`xdg_cache_filetrans',`
filetrans_pattern($1, xdg_cache_t, $2, $3, $4)
xdg_create_cache_dirs($1)
- xdg_generic_user_home_dir_filetrans_cache($1, dir, ".cache")
')
########################################
@@ -397,8 +396,6 @@ interface(`xdg_config_filetrans',`
filetrans_pattern($1, xdg_config_t, $2, $3, $4)
xdg_create_config_dirs($1)
- xdg_generic_user_home_dir_filetrans_config($1, dir, ".config")
-
')
########################################
@@ -629,7 +626,6 @@ interface(`xdg_data_filetrans',`
filetrans_pattern($1, xdg_data_t, $2, $3, $4)
xdg_create_data_dirs($1)
- xdg_generic_user_home_dir_filetrans_data($1, dir, ".local")
')
########################################
--
2.16.4
next prev parent reply other threads:[~2018-06-24 9:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-24 9:56 [refpolicy] [PATCH 1/5] xdg: Add map perms, also make lnk_file, dirs consistent Jason Zaman
2018-06-24 9:56 ` Jason Zaman [this message]
2018-06-25 0:32 ` [refpolicy] [PATCH 2/5] xdg: filetrans should not add filetrans from user_home_dir Chris PeBenito
2018-06-24 9:56 ` [refpolicy] [PATCH 3/5] xdg: Introduce xdg_search_cache_dirs Jason Zaman
2018-06-25 0:33 ` Chris PeBenito
2018-06-24 9:56 ` [refpolicy] [PATCH 4/5] xserver: Add mesa_shader_cache for GLSL in ~/.cache/mesa_shader_cache/ Jason Zaman
2018-06-25 0:33 ` Chris PeBenito
2018-06-24 9:56 ` [refpolicy] [PATCH 5/5] apps: rw mesa_shader_cache Jason Zaman
2018-06-25 0:33 ` Chris PeBenito
2018-06-25 0:32 ` [refpolicy] [PATCH 1/5] xdg: Add map perms, also make lnk_file, dirs consistent Chris PeBenito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180624095611.48338-2-jason@perfinion.com \
--to=jason@perfinion.com \
--cc=refpolicy@oss.tresys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).