From: "Sven Vermeulen" <sven.vermeulen@siphos.be> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/hardened-refpolicy:merge commit in: policy/modules/contrib/ Date: Mon, 23 Sep 2013 06:29:26 +0000 (UTC) [thread overview] Message-ID: <1379917647.0afa74b4db3fc54e1d1e5937667246cb6621df3e.SwifT@gentoo> (raw) commit: 0afa74b4db3fc54e1d1e5937667246cb6621df3e Author: Miroslav Grepl <mgrepl <AT> redhat <DOT> com> AuthorDate: Thu Aug 22 11:10:10 2013 +0000 Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> CommitDate: Mon Sep 23 06:27:27 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0afa74b4 Add labeling for /etc/condor and allow condor domain to write it (bug) --- policy/modules/contrib/condor.fc | 2 ++ policy/modules/contrib/condor.te | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/policy/modules/contrib/condor.fc b/policy/modules/contrib/condor.fc index 23dc348..543321b 100644 --- a/policy/modules/contrib/condor.fc +++ b/policy/modules/contrib/condor.fc @@ -1,3 +1,5 @@ +/etc/condor(/.*)? gen_context(system_u:object_r:condor_etc_rw_t,s0) + /etc/rc\.d/init\.d/condor -- gen_context(system_u:object_r:condor_initrc_exec_t,s0) /usr/sbin/condor_collector -- gen_context(system_u:object_r:condor_collector_exec_t,s0) diff --git a/policy/modules/contrib/condor.te b/policy/modules/contrib/condor.te index 4ca829b..7666be4 100644 --- a/policy/modules/contrib/condor.te +++ b/policy/modules/contrib/condor.te @@ -34,6 +34,9 @@ files_tmp_file(condor_startd_tmp_t) type condor_startd_tmpfs_t; files_tmpfs_file(condor_startd_tmpfs_t) +type condor_etc_rw_t; +files_config_file(condor_etc_rw_t) + type condor_log_t; logging_log_file(condor_log_t) @@ -62,6 +65,8 @@ allow condor_domain self:fifo_file rw_fifo_file_perms; allow condor_domain self:tcp_socket { accept listen }; allow condor_domain self:unix_stream_socket { accept listen }; +rw_files_pattern(condor_domain, condor_etc_rw_t, condor_etc_rw_t) + manage_dirs_pattern(condor_domain, condor_log_t, condor_log_t) append_files_pattern(condor_domain, condor_log_t, condor_log_t) create_files_pattern(condor_domain, condor_log_t, condor_log_t) @@ -110,6 +115,8 @@ logging_send_syslog_msg(condor_domain) miscfiles_read_localization(condor_domain) +sysnet_dns_name_resolve(condor_domain) + tunable_policy(`condor_tcp_network_connect',` corenet_sendrecv_all_client_packets(condor_domain) corenet_tcp_connect_all_ports(condor_domain)
WARNING: multiple messages have this Message-ID (diff)
From: "Sven Vermeulen" <sven.vermeulen@siphos.be> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ Date: Mon, 23 Sep 2013 13:31:42 +0000 (UTC) [thread overview] Message-ID: <1379917647.0afa74b4db3fc54e1d1e5937667246cb6621df3e.SwifT@gentoo> (raw) Message-ID: <20130923133142.X_m4Ilk1VSV3Uzy8Z7mq2gnbl4_b1kRiVGheFYrZXIs@z> (raw) commit: 0afa74b4db3fc54e1d1e5937667246cb6621df3e Author: Miroslav Grepl <mgrepl <AT> redhat <DOT> com> AuthorDate: Thu Aug 22 11:10:10 2013 +0000 Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> CommitDate: Mon Sep 23 06:27:27 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0afa74b4 Add labeling for /etc/condor and allow condor domain to write it (bug) --- policy/modules/contrib/condor.fc | 2 ++ policy/modules/contrib/condor.te | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/policy/modules/contrib/condor.fc b/policy/modules/contrib/condor.fc index 23dc348..543321b 100644 --- a/policy/modules/contrib/condor.fc +++ b/policy/modules/contrib/condor.fc @@ -1,3 +1,5 @@ +/etc/condor(/.*)? gen_context(system_u:object_r:condor_etc_rw_t,s0) + /etc/rc\.d/init\.d/condor -- gen_context(system_u:object_r:condor_initrc_exec_t,s0) /usr/sbin/condor_collector -- gen_context(system_u:object_r:condor_collector_exec_t,s0) diff --git a/policy/modules/contrib/condor.te b/policy/modules/contrib/condor.te index 4ca829b..7666be4 100644 --- a/policy/modules/contrib/condor.te +++ b/policy/modules/contrib/condor.te @@ -34,6 +34,9 @@ files_tmp_file(condor_startd_tmp_t) type condor_startd_tmpfs_t; files_tmpfs_file(condor_startd_tmpfs_t) +type condor_etc_rw_t; +files_config_file(condor_etc_rw_t) + type condor_log_t; logging_log_file(condor_log_t) @@ -62,6 +65,8 @@ allow condor_domain self:fifo_file rw_fifo_file_perms; allow condor_domain self:tcp_socket { accept listen }; allow condor_domain self:unix_stream_socket { accept listen }; +rw_files_pattern(condor_domain, condor_etc_rw_t, condor_etc_rw_t) + manage_dirs_pattern(condor_domain, condor_log_t, condor_log_t) append_files_pattern(condor_domain, condor_log_t, condor_log_t) create_files_pattern(condor_domain, condor_log_t, condor_log_t) @@ -110,6 +115,8 @@ logging_send_syslog_msg(condor_domain) miscfiles_read_localization(condor_domain) +sysnet_dns_name_resolve(condor_domain) + tunable_policy(`condor_tcp_network_connect',` corenet_sendrecv_all_client_packets(condor_domain) corenet_tcp_connect_all_ports(condor_domain)
next reply other threads:[~2013-09-23 6:29 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-09-23 6:29 Sven Vermeulen [this message] 2013-09-23 13:31 ` [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ Sven Vermeulen -- strict thread matches above, loose matches on Subject: below -- 2013-09-23 13:31 Sven Vermeulen 2013-09-23 6:29 ` [gentoo-commits] proj/hardened-refpolicy:merge " Sven Vermeulen 2013-09-23 13:31 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen 2013-09-23 6:29 ` [gentoo-commits] proj/hardened-refpolicy:merge " Sven Vermeulen 2013-09-23 13:31 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen 2013-09-23 6:29 ` [gentoo-commits] proj/hardened-refpolicy:merge " Sven Vermeulen 2013-09-23 13:31 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen 2013-09-23 6:29 ` [gentoo-commits] proj/hardened-refpolicy:merge " Sven Vermeulen 2013-09-23 13:31 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen 2013-09-23 6:29 ` [gentoo-commits] proj/hardened-refpolicy:merge " Sven Vermeulen 2013-09-23 13:31 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen 2013-09-23 6:29 ` [gentoo-commits] proj/hardened-refpolicy:merge " Sven Vermeulen 2013-09-23 13:31 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen 2013-09-23 6:29 ` [gentoo-commits] proj/hardened-refpolicy:merge " Sven Vermeulen 2013-09-23 13:31 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen 2013-09-23 6:29 ` [gentoo-commits] proj/hardened-refpolicy:merge " Sven Vermeulen 2013-09-23 13:31 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen 2013-09-23 6:29 ` [gentoo-commits] proj/hardened-refpolicy:merge " Sven Vermeulen 2013-09-23 6:29 Sven Vermeulen 2013-09-23 6:29 Sven Vermeulen 2013-09-23 6:29 Sven Vermeulen 2013-09-23 6:29 Sven Vermeulen 2013-09-23 6:29 Sven Vermeulen 2013-09-23 6:29 Sven Vermeulen 2013-09-23 6:29 Sven Vermeulen 2013-09-23 6:29 Sven Vermeulen 2013-09-23 6:29 Sven Vermeulen
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=1379917647.0afa74b4db3fc54e1d1e5937667246cb6621df3e.SwifT@gentoo \ --to=sven.vermeulen@siphos.be \ --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