base: staff role runs ntp
PATCH 1/2 base: staff role runs ntp
Update the staff role policy so that it allows to run ntpd and ntpdate.
--- 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(staff_t, staff_r)
+')
+
+optional_policy(`
postgresql_role(staff_r, staff_t)
')
PATCH 1/2 base: staff role runs ntp
Quoted 15 lines · Guido Trentalancia via refpolicy
Update the staff role policy so that it allows to run ntpd and ntpdate.
Signed-off-by Guido Trentalancia <[email protected]>--- 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
Review optional_policy(` · line 40
Quoted 9 lines
(quoted diff) +4
-0@@ -32,6 +32,10 @@ optional_policy(` ') optional_policy(` + ntp_run(staff_t, staff_r) +') + +optional_policy(` postgresql_role(staff_r, staff_t) ')
What is the reasoning for this? Staff_t is supposed to be unprivileged, so this doesn't seem allowable.
Signature · 1 line
Chris PeBenito
PATCH 1/2 base: staff role runs ntp
It is intended to aid running ntpdate from the crontab.
Regards,
Guido
Quoted 29 lines · Chris PeBenito
Quoted 15 lines · Guido Trentalancia via refpolicy
Update the staff role policy so that it allows to run ntpd and ntpdate.
Signed-off-by Guido Trentalancia <[email protected]>--- 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 +0200Review optional_policy(` · line 40
Quoted 9 lines
(quoted diff) +4
-0@@ -32,6 +32,10 @@ optional_policy(` ') optional_policy(` + ntp_run(staff_t, staff_r) +') + +optional_policy(` postgresql_role(staff_r, staff_t) ')What is the reasoning for this?
Staff_tis supposed to be unprivileged,
so this doesn't seem allowable.
PATCH 1/2 base: staff role runs ntp
Quoted 1 line · Guido Trentalancia via refpolicy
It is intended to aid running ntpdate from the crontab.
I don't agree with this being run from the staff role.
Quoted 36 lines · Chris PeBenito
Quoted 18 lines · Guido Trentalancia via refpolicy
Quoted 17 lines
Update the staff role policy so that it allows to run ntpd and ntpdate.
Signed-off-by Guido Trentalancia <[email protected]>--- 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(quoted diff) +0
-0@@ -32,6 +32,10 @@ optional_policy(` ')Quoted 11 lines
Review optional_policy(` · line 40
Quoted 7 lines
(quoted diff) +4
-0optional_policy(` + ntp_run(staff_t, staff_r) +') + +optional_policy(` postgresql_role(staff_r, staff_t) ')What is the reasoning for this?
Staff_tis supposed to be unprivileged,
so this doesn't seem allowable._______________________________________________
refpolicy mailing list
refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy
Signature · 1 line
Chris PeBenito
PATCH v2 1/2 base: staff role runs ntp
In reply to Chris PeBenitoUpdate the staff role policy so that it allows to run ntpdate. This is needed for example to start ntpdate from the crontab.
--- policy/modules/roles/staff.te | 4 ++++ 1 file changed, 4 insertions(+)
policy/modules/roles/staff.te +4 -0
@@ -32,6 +32,10 @@ optional_policy(` ') optional_policy(` + ntp_run_ntpdate(staff_t, staff_r) +') + +optional_policy(` postgresql_role(staff_r, staff_t) ')