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: Wed, 14 Oct 2015 18:36:24 +0000 (UTC) [thread overview] Message-ID: <1444746101.4db341f7c2dd5502db391b2322967772e3213c01.perfinion@gentoo> (raw) commit: 4db341f7c2dd5502db391b2322967772e3213c01 Author: Chris PeBenito <cpebenito <AT> tresys <DOT> com> AuthorDate: Mon Oct 12 13:30:05 2015 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Tue Oct 13 14:21:41 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=4db341f7 Rearrange lines in ipsec.te. policy/modules/system/ipsec.te | 43 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/policy/modules/system/ipsec.te b/policy/modules/system/ipsec.te index 2d8b686..b9cfcc3 100644 --- a/policy/modules/system/ipsec.te +++ b/policy/modules/system/ipsec.te @@ -54,6 +54,11 @@ files_lock_file(ipsec_mgmt_lock_t) type ipsec_mgmt_var_run_t; files_pid_file(ipsec_mgmt_var_run_t) +type ipsec_supervisor_t; +type ipsec_supervisor_exec_t; +init_daemon_domain(ipsec_supervisor_t, ipsec_supervisor_exec_t); +role system_r types ipsec_supervisor_t; + type racoon_t; type racoon_exec_t; init_daemon_domain(racoon_t, racoon_exec_t) @@ -67,11 +72,6 @@ type setkey_exec_t; init_system_domain(setkey_t, setkey_exec_t) role system_r types setkey_t; -type ipsec_supervisor_t; -type ipsec_supervisor_exec_t; -init_daemon_domain(ipsec_supervisor_t, ipsec_supervisor_exec_t); -role system_r types ipsec_supervisor_t; - ######################################## # # ipsec Local policy @@ -202,49 +202,48 @@ allow ipsec_mgmt_t self:udp_socket create_socket_perms; allow ipsec_mgmt_t self:key_socket create_socket_perms; allow ipsec_mgmt_t self:fifo_file rw_fifo_file_perms; -allow ipsec_mgmt_t ipsec_supervisor_t:process { signal signull }; +domtrans_pattern(ipsec_mgmt_t, ipsec_exec_t, ipsec_t) + +# _realsetup needs to be able to cat /var/run/pluto.pid, +# run ps on that pid, and delete the file +read_files_pattern(ipsec_mgmt_t, ipsec_t, ipsec_t) +read_lnk_files_pattern(ipsec_mgmt_t, ipsec_t, ipsec_t) + +allow ipsec_mgmt_t ipsec_conf_file_t:file read_file_perms; + +manage_files_pattern(ipsec_mgmt_t, ipsec_key_file_t, ipsec_key_file_t) +manage_lnk_files_pattern(ipsec_mgmt_t, ipsec_key_file_t, ipsec_key_file_t) allow ipsec_mgmt_t ipsec_mgmt_lock_t:file manage_file_perms; files_lock_filetrans(ipsec_mgmt_t, ipsec_mgmt_lock_t, file) +manage_files_pattern(ipsec_mgmt_t, ipsec_log_t, ipsec_log_t) +logging_log_filetrans(ipsec_mgmt_t, ipsec_log_t, file) + manage_dirs_pattern(ipsec_mgmt_t, ipsec_tmp_t, ipsec_tmp_t) manage_files_pattern(ipsec_mgmt_t, ipsec_tmp_t, ipsec_tmp_t) files_tmp_filetrans(ipsec_mgmt_t, ipsec_tmp_t, { dir file }) -manage_files_pattern(ipsec_mgmt_t, ipsec_log_t, ipsec_log_t) -logging_log_filetrans(ipsec_mgmt_t, ipsec_log_t, file) - allow ipsec_mgmt_t ipsec_mgmt_var_run_t:file manage_file_perms; -files_pid_filetrans(ipsec_mgmt_t, ipsec_mgmt_var_run_t, file) - manage_files_pattern(ipsec_mgmt_t, ipsec_var_run_t, ipsec_var_run_t) manage_lnk_files_pattern(ipsec_mgmt_t, ipsec_var_run_t, ipsec_var_run_t) +files_pid_filetrans(ipsec_mgmt_t, ipsec_mgmt_var_run_t, file) allow ipsec_mgmt_t ipsec_var_run_t:sock_file manage_sock_file_perms; files_pid_filetrans(ipsec_mgmt_t, ipsec_var_run_t, sock_file) -# _realsetup needs to be able to cat /var/run/pluto.pid, -# run ps on that pid, and delete the file -read_files_pattern(ipsec_mgmt_t, ipsec_t, ipsec_t) -read_lnk_files_pattern(ipsec_mgmt_t, ipsec_t, ipsec_t) - # logger, running in ipsec_mgmt_t needs to use sockets allow ipsec_mgmt_t self:unix_dgram_socket { create connect write }; allow ipsec_mgmt_t ipsec_t:unix_dgram_socket { create connect write }; -allow ipsec_mgmt_t ipsec_conf_file_t:file read_file_perms; - -manage_files_pattern(ipsec_mgmt_t, ipsec_key_file_t, ipsec_key_file_t) -manage_lnk_files_pattern(ipsec_mgmt_t, ipsec_key_file_t, ipsec_key_file_t) - # whack needs to connect to pluto stream_connect_pattern(ipsec_mgmt_t, ipsec_var_run_t, ipsec_var_run_t, ipsec_t) can_exec(ipsec_mgmt_t, ipsec_mgmt_exec_t) allow ipsec_mgmt_t ipsec_mgmt_exec_t:lnk_file read; -domtrans_pattern(ipsec_mgmt_t, ipsec_exec_t, ipsec_t) domtrans_pattern(ipsec_mgmt_t, ipsec_supervisor_exec_t, ipsec_supervisor_t); +allow ipsec_mgmt_t ipsec_supervisor_t:process { signal signull }; kernel_rw_net_sysctls(ipsec_mgmt_t) # allow pluto to access /proc/net/ipsec_eroute;
WARNING: multiple messages have this Message-ID (diff)
From: "Jason Zaman" <perfinion@gentoo.org> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ Date: Tue, 13 Oct 2015 14:50:55 +0000 (UTC) [thread overview] Message-ID: <1444746101.4db341f7c2dd5502db391b2322967772e3213c01.perfinion@gentoo> (raw) Message-ID: <20151013145055.9LQ8sVRUF5d6D23DXX3WBQp5ccS_Eb_csXwupHu-Bqo@z> (raw) commit: 4db341f7c2dd5502db391b2322967772e3213c01 Author: Chris PeBenito <cpebenito <AT> tresys <DOT> com> AuthorDate: Mon Oct 12 13:30:05 2015 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Tue Oct 13 14:21:41 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=4db341f7 Rearrange lines in ipsec.te. policy/modules/system/ipsec.te | 43 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/policy/modules/system/ipsec.te b/policy/modules/system/ipsec.te index 2d8b686..b9cfcc3 100644 --- a/policy/modules/system/ipsec.te +++ b/policy/modules/system/ipsec.te @@ -54,6 +54,11 @@ files_lock_file(ipsec_mgmt_lock_t) type ipsec_mgmt_var_run_t; files_pid_file(ipsec_mgmt_var_run_t) +type ipsec_supervisor_t; +type ipsec_supervisor_exec_t; +init_daemon_domain(ipsec_supervisor_t, ipsec_supervisor_exec_t); +role system_r types ipsec_supervisor_t; + type racoon_t; type racoon_exec_t; init_daemon_domain(racoon_t, racoon_exec_t) @@ -67,11 +72,6 @@ type setkey_exec_t; init_system_domain(setkey_t, setkey_exec_t) role system_r types setkey_t; -type ipsec_supervisor_t; -type ipsec_supervisor_exec_t; -init_daemon_domain(ipsec_supervisor_t, ipsec_supervisor_exec_t); -role system_r types ipsec_supervisor_t; - ######################################## # # ipsec Local policy @@ -202,49 +202,48 @@ allow ipsec_mgmt_t self:udp_socket create_socket_perms; allow ipsec_mgmt_t self:key_socket create_socket_perms; allow ipsec_mgmt_t self:fifo_file rw_fifo_file_perms; -allow ipsec_mgmt_t ipsec_supervisor_t:process { signal signull }; +domtrans_pattern(ipsec_mgmt_t, ipsec_exec_t, ipsec_t) + +# _realsetup needs to be able to cat /var/run/pluto.pid, +# run ps on that pid, and delete the file +read_files_pattern(ipsec_mgmt_t, ipsec_t, ipsec_t) +read_lnk_files_pattern(ipsec_mgmt_t, ipsec_t, ipsec_t) + +allow ipsec_mgmt_t ipsec_conf_file_t:file read_file_perms; + +manage_files_pattern(ipsec_mgmt_t, ipsec_key_file_t, ipsec_key_file_t) +manage_lnk_files_pattern(ipsec_mgmt_t, ipsec_key_file_t, ipsec_key_file_t) allow ipsec_mgmt_t ipsec_mgmt_lock_t:file manage_file_perms; files_lock_filetrans(ipsec_mgmt_t, ipsec_mgmt_lock_t, file) +manage_files_pattern(ipsec_mgmt_t, ipsec_log_t, ipsec_log_t) +logging_log_filetrans(ipsec_mgmt_t, ipsec_log_t, file) + manage_dirs_pattern(ipsec_mgmt_t, ipsec_tmp_t, ipsec_tmp_t) manage_files_pattern(ipsec_mgmt_t, ipsec_tmp_t, ipsec_tmp_t) files_tmp_filetrans(ipsec_mgmt_t, ipsec_tmp_t, { dir file }) -manage_files_pattern(ipsec_mgmt_t, ipsec_log_t, ipsec_log_t) -logging_log_filetrans(ipsec_mgmt_t, ipsec_log_t, file) - allow ipsec_mgmt_t ipsec_mgmt_var_run_t:file manage_file_perms; -files_pid_filetrans(ipsec_mgmt_t, ipsec_mgmt_var_run_t, file) - manage_files_pattern(ipsec_mgmt_t, ipsec_var_run_t, ipsec_var_run_t) manage_lnk_files_pattern(ipsec_mgmt_t, ipsec_var_run_t, ipsec_var_run_t) +files_pid_filetrans(ipsec_mgmt_t, ipsec_mgmt_var_run_t, file) allow ipsec_mgmt_t ipsec_var_run_t:sock_file manage_sock_file_perms; files_pid_filetrans(ipsec_mgmt_t, ipsec_var_run_t, sock_file) -# _realsetup needs to be able to cat /var/run/pluto.pid, -# run ps on that pid, and delete the file -read_files_pattern(ipsec_mgmt_t, ipsec_t, ipsec_t) -read_lnk_files_pattern(ipsec_mgmt_t, ipsec_t, ipsec_t) - # logger, running in ipsec_mgmt_t needs to use sockets allow ipsec_mgmt_t self:unix_dgram_socket { create connect write }; allow ipsec_mgmt_t ipsec_t:unix_dgram_socket { create connect write }; -allow ipsec_mgmt_t ipsec_conf_file_t:file read_file_perms; - -manage_files_pattern(ipsec_mgmt_t, ipsec_key_file_t, ipsec_key_file_t) -manage_lnk_files_pattern(ipsec_mgmt_t, ipsec_key_file_t, ipsec_key_file_t) - # whack needs to connect to pluto stream_connect_pattern(ipsec_mgmt_t, ipsec_var_run_t, ipsec_var_run_t, ipsec_t) can_exec(ipsec_mgmt_t, ipsec_mgmt_exec_t) allow ipsec_mgmt_t ipsec_mgmt_exec_t:lnk_file read; -domtrans_pattern(ipsec_mgmt_t, ipsec_exec_t, ipsec_t) domtrans_pattern(ipsec_mgmt_t, ipsec_supervisor_exec_t, ipsec_supervisor_t); +allow ipsec_mgmt_t ipsec_supervisor_t:process { signal signull }; kernel_rw_net_sysctls(ipsec_mgmt_t) # allow pluto to access /proc/net/ipsec_eroute;
next reply other threads:[~2015-10-14 18:36 UTC|newest] Thread overview: 99+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-10-14 18:36 Jason Zaman [this message] 2015-10-13 14:50 ` [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ Jason Zaman -- strict thread matches above, loose matches on Subject: below -- 2017-09-10 14:03 [gentoo-commits] proj/hardened-refpolicy:next " 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 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-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=1444746101.4db341f7c2dd5502db391b2322967772e3213c01.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: linkBe 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