From: "Jason Zaman" <perfinion@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/system/
Date: Thu, 26 May 2016 15:54:25 +0000 (UTC) [thread overview]
Message-ID: <1464276811.e46ed57244089ec585dcce05d50ea3b708e55196.perfinion@gentoo> (raw)
commit: e46ed57244089ec585dcce05d50ea3b708e55196
Author: Jason Zaman <jason <AT> perfinion <DOT> com>
AuthorDate: Thu May 12 19:12:24 2016 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Thu May 26 15:33:31 2016 +0000
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e46ed572
userdomain: user_tmp requires searching /run/user
policy/modules/system/userdomain.if | 65 +++++++++++++++++++++++++++++--------
1 file changed, 52 insertions(+), 13 deletions(-)
diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if
index 9284808..0d6d9b1 100644
--- a/policy/modules/system/userdomain.if
+++ b/policy/modules/system/userdomain.if
@@ -339,11 +339,14 @@ interface(`userdom_manage_tmp_role',`
#
interface(`userdom_exec_user_tmp_files',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
exec_files_pattern($1, user_tmp_t, user_tmp_t)
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
#######################################
@@ -2368,11 +2371,14 @@ interface(`userdom_user_home_dir_filetrans_user_home_content',`
#
interface(`userdom_write_user_tmp_sockets',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
allow $1 user_tmp_t:sock_file write_sock_file_perms;
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -2387,11 +2393,14 @@ interface(`userdom_write_user_tmp_sockets',`
#
interface(`userdom_list_user_tmp',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
allow $1 user_tmp_t:dir list_dir_perms;
+ allow $1 user_runtime_dir_t:dir list_dir_perms;
files_search_tmp($1)
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -2444,12 +2453,15 @@ interface(`userdom_dontaudit_manage_user_tmp_dirs',`
#
interface(`userdom_read_user_tmp_files',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
read_files_pattern($1, user_tmp_t, user_tmp_t)
allow $1 user_tmp_t:dir list_dir_perms;
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -2502,12 +2514,15 @@ interface(`userdom_dontaudit_append_user_tmp_files',`
#
interface(`userdom_rw_user_tmp_files',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
allow $1 user_tmp_t:dir list_dir_perms;
rw_files_pattern($1, user_tmp_t, user_tmp_t)
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -2541,12 +2556,15 @@ interface(`userdom_dontaudit_manage_user_tmp_files',`
#
interface(`userdom_read_user_tmp_symlinks',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
read_lnk_files_pattern($1, user_tmp_t, user_tmp_t)
allow $1 user_tmp_t:dir list_dir_perms;
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -2562,11 +2580,14 @@ interface(`userdom_read_user_tmp_symlinks',`
#
interface(`userdom_manage_user_tmp_dirs',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
manage_dirs_pattern($1, user_tmp_t, user_tmp_t)
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -2582,11 +2603,14 @@ interface(`userdom_manage_user_tmp_dirs',`
#
interface(`userdom_manage_user_tmp_files',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
manage_files_pattern($1, user_tmp_t, user_tmp_t)
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -2602,11 +2626,14 @@ interface(`userdom_manage_user_tmp_files',`
#
interface(`userdom_manage_user_tmp_symlinks',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
manage_lnk_files_pattern($1, user_tmp_t, user_tmp_t)
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -2622,11 +2649,14 @@ interface(`userdom_manage_user_tmp_symlinks',`
#
interface(`userdom_manage_user_tmp_pipes',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
manage_fifo_files_pattern($1, user_tmp_t, user_tmp_t)
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -2642,11 +2672,14 @@ interface(`userdom_manage_user_tmp_pipes',`
#
interface(`userdom_manage_user_tmp_sockets',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
manage_sock_files_pattern($1, user_tmp_t, user_tmp_t)
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -2678,11 +2711,14 @@ interface(`userdom_manage_user_tmp_sockets',`
#
interface(`userdom_user_tmp_filetrans',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
filetrans_pattern($1, user_tmp_t, $2, $3, $4)
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
########################################
@@ -3655,9 +3691,12 @@ interface(`userdom_manage_all_user_home_content',`
#
interface(`userdom_manage_user_tmp_chr_files',`
gen_require(`
- type user_tmp_t;
+ type user_tmp_t, user_runtime_root_t, user_runtime_dir_t;
')
manage_chr_files_pattern($1, user_tmp_t, user_tmp_t)
files_search_tmp($1)
+ allow $1 user_runtime_dir_t:dir search_dir_perms;
+ allow $1 user_runtime_root_t:dir search_dir_perms;
+ files_search_pids($1)
')
next reply other threads:[~2016-05-26 15:54 UTC|newest]
Thread overview: 98+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-26 15:54 Jason Zaman [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-09-10 14:03 [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/system/ Jason Zaman
2017-09-10 14:03 Jason Zaman
2017-09-10 14:03 Jason Zaman
2017-09-10 14:03 Jason Zaman
2017-09-10 14:03 Jason Zaman
2017-09-10 14:03 Jason Zaman
2017-09-10 14:03 Jason Zaman
2017-09-10 14:03 Jason Zaman
2017-05-07 17:41 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2017-05-07 17:47 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2017-03-30 17:06 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2017-03-30 17:09 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2017-02-27 11:40 Jason Zaman
2017-02-27 11:24 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2017-02-27 11:40 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2017-02-27 10:50 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2017-02-27 11:40 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2017-02-27 10:50 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2017-02-27 11:40 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2017-02-25 16:58 Jason Zaman
2017-02-25 16:58 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2017-02-25 16:58 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2017-02-25 16:58 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2017-02-25 16:58 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2017-02-25 14:59 Jason Zaman
2017-02-25 14:59 Jason Zaman
2017-02-25 14:59 Jason Zaman
2017-02-25 14:59 Jason Zaman
2017-01-01 16:37 Jason Zaman
2017-01-01 16:37 Jason Zaman
2017-01-01 16:36 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2017-01-01 16:37 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2016-12-08 5:03 Jason Zaman
2016-12-08 4:47 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2016-12-08 5:03 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2016-12-08 4:47 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2016-12-08 5:03 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2016-12-06 14:24 Jason Zaman
2016-12-06 13:39 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2016-12-06 14:24 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2016-12-06 13:39 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2016-12-06 14:24 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2016-10-24 17:14 Sven Vermeulen
2016-10-24 17:00 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen
2016-10-24 17:14 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2016-10-24 16:56 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen
2016-10-24 17:13 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2016-10-24 16:56 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen
2016-10-24 17:13 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2016-10-24 16:56 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen
2016-10-24 17:13 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2016-10-24 16:56 [gentoo-commits] proj/hardened-refpolicy:swift " Sven Vermeulen
2016-10-24 17:13 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2016-10-24 16:47 [gentoo-commits] proj/hardened-refpolicy:swift " Sven Vermeulen
2016-10-24 17:13 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2016-10-24 16:03 Sven Vermeulen
2016-10-24 15:45 [gentoo-commits] proj/hardened-refpolicy:swift " Sven Vermeulen
2016-10-24 16:03 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2016-10-24 15:44 Jason Zaman
2016-10-03 6:26 Jason Zaman
2016-10-03 6:26 Jason Zaman
2016-10-03 6:26 Jason Zaman
2016-08-17 16:59 Jason Zaman
2016-08-17 16:59 Jason Zaman
2016-08-17 16:59 Jason Zaman
2016-08-17 16:59 Jason Zaman
2016-08-17 16:59 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2016-08-17 16:59 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2016-08-13 18:35 Jason Zaman
2016-08-13 18:32 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2016-08-13 18:35 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2016-08-13 18:32 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2016-08-13 18:35 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2016-05-26 19:28 Jason Zaman
2016-05-26 17:39 Jason Zaman
2016-05-26 15:54 Jason Zaman
2016-05-26 15:54 Jason Zaman
2015-12-18 4:14 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2015-12-18 4:14 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2015-12-17 18:52 Jason Zaman
2015-12-17 18:49 Jason Zaman
2015-12-17 18:49 Jason Zaman
2015-12-17 16:10 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2015-12-17 18:49 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2015-10-26 5:48 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2015-10-26 5:36 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2015-10-26 5:36 Jason Zaman
2015-10-26 5:36 Jason Zaman
2015-10-14 18:36 Jason Zaman
2015-10-14 18:36 Jason Zaman
2015-10-14 18:36 Jason Zaman
2015-10-11 10:48 Jason Zaman
2015-08-02 19:05 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2015-08-02 19:06 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2015-07-11 19:57 Jason Zaman
2015-03-29 10:01 Jason Zaman
2015-03-25 16:01 Jason Zaman
2015-03-24 13:25 Jason Zaman
2015-03-04 17:03 Sven Vermeulen
2015-02-09 9:58 [gentoo-commits] proj/hardened-refpolicy:adminroles " Jason Zaman
2015-02-09 9:55 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2015-02-09 9:55 Jason Zaman
2015-01-29 9:12 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2015-01-29 8:38 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2015-01-29 8:38 Jason Zaman
2015-01-29 6:51 Jason Zaman
2015-01-29 6:51 Jason Zaman
2015-01-29 6:51 Jason Zaman
2015-01-25 13:46 Sven Vermeulen
2015-01-25 13:46 Sven Vermeulen
2015-01-20 15:08 Jason Zaman
2015-01-20 15:08 Jason Zaman
2014-11-28 11:16 Sven Vermeulen
2014-11-28 10:17 Sven Vermeulen
2014-11-28 10:04 Sven Vermeulen
2014-11-28 10:04 Sven Vermeulen
2014-11-28 10:04 Sven Vermeulen
2014-11-28 10:04 Sven Vermeulen
2014-11-28 10:04 Sven Vermeulen
2014-11-28 10:04 Sven Vermeulen
2014-11-28 10:04 Sven Vermeulen
2014-11-23 14:06 [gentoo-commits] proj/hardened-refpolicy:bitcoin " Sven Vermeulen
2014-11-28 10:04 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2014-11-22 19:02 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen
2014-11-28 10:04 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2014-10-12 9:13 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen
2014-10-12 8:44 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2014-08-20 17:10 Jason Zaman
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=1464276811.e46ed57244089ec585dcce05d50ea3b708e55196.perfinion@gentoo \
--to=perfinion@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/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