All of lore.kernel.org
 help / color / mirror / Atom feed
From: guido@trentalancia.com (Guido Trentalancia)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/2 v2] base: staff role runs ntp
Date: Mon, 16 Apr 2018 11:39:28 +0200	[thread overview]
Message-ID: <1523871568.10266.4.camel@trentalancia.com> (raw)
In-Reply-To: <8b73f7c2-e089-f351-3e60-77a78d399afe@ieee.org>

Update the staff role policy so that it allows to run
ntpdate. This is needed for example to start ntpdate
from the crontab.

Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
---
 policy/modules/roles/staff.te |    4 ++++
 1 file changed, 4 insertions(+)

diff -pru a/policy/modules/roles/staff.te b/policy/modules/roles/staff.te
--- a/policy/modules/roles/staff.te	2017-09-29 19:01:27.985455758 +0200
+++ b/policy/modules/roles/staff.te	2018-04-14 18:14:52.850666408 +0200
@@ -32,6 +32,10 @@ optional_policy(`
 ')
 
 optional_policy(`
+	ntp_run_ntpdate(staff_t, staff_r)
+')
+
+optional_policy(`
 	postgresql_role(staff_r, staff_t)
 ')
 

      parent reply	other threads:[~2018-04-16  9:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-14 16:27 [refpolicy] [PATCH 1/2] base: staff role runs ntp Guido Trentalancia
2018-04-15 21:23 ` Chris PeBenito
2018-04-15 21:45   ` Guido Trentalancia
2018-04-18  0:13     ` Chris PeBenito
2018-04-16  9:39   ` Guido Trentalancia [this message]

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=1523871568.10266.4.camel@trentalancia.com \
    --to=guido@trentalancia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.