SELinux-Refpolicy Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH v2] Add interface to get status of rsyslog service
@ 2019-02-20 16:37 Sugar, David
  2019-02-20 16:37 ` [PATCH v2] New interface to dontaudit access to cert_t Sugar, David
  2019-02-21  3:40 ` [PATCH v2] Add interface to get status of rsyslog service Chris PeBenito
  0 siblings, 2 replies; 4+ messages in thread
From: Sugar, David @ 2019-02-20 16:37 UTC (permalink / raw)
  To: selinux-refpolicy

Updated based on feedback.

Signed-off-by: Dave Sugar <dsugar@tresys.com>
---
 policy/modules/system/logging.if | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/policy/modules/system/logging.if b/policy/modules/system/logging.if
index 16091eb6..c86c4bd9 100644
--- a/policy/modules/system/logging.if
+++ b/policy/modules/system/logging.if
@@ -427,6 +427,25 @@ interface(`logging_domtrans_syslog',`
 	')
 ')
 
+########################################
+## <summary>
+##	Allow specified domain to check status of syslog unit
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+#
+interface(`logging_status_syslog',`
+	gen_require(`
+		type syslogd_unit_t;
+		class service status;
+	')
+
+	allow $1 syslogd_unit_t:service status;
+')
+
 ########################################
 ## <summary>
 ##	Set the attributes of syslog temporary files.
-- 
2.20.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-20 16:37 [PATCH v2] Add interface to get status of rsyslog service Sugar, David
2019-02-20 16:37 ` [PATCH v2] New interface to dontaudit access to cert_t Sugar, David
2019-02-21  3:40   ` Chris PeBenito
2019-02-21  3:40 ` [PATCH v2] Add interface to get status of rsyslog service Chris PeBenito

SELinux-Refpolicy Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/selinux-refpolicy/0 selinux-refpolicy/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux-refpolicy selinux-refpolicy/ https://lore.kernel.org/selinux-refpolicy \
		selinux-refpolicy@vger.kernel.org selinux-refpolicy@archiver.kernel.org
	public-inbox-index selinux-refpolicy


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.selinux-refpolicy


AGPL code for this site: git clone https://public-inbox.org/ public-inbox