All of lore.kernel.org
 help / color / mirror / Atom feed
* gentoo diff for ntpd
@ 2004-10-05  8:25 petre rodan
  2004-10-05 13:14 ` Joshua Brindle
  0 siblings, 1 reply; 6+ messages in thread
From: petre rodan @ 2004-10-05  8:25 UTC (permalink / raw)
  To: selinux


[-- Attachment #1.1: Type: text/plain, Size: 225 bytes --]

Hi!

This is a very small diff that would make the gentoo community happy :)

reference:
http://bugs.gentoo.org/show_bug.cgi?id=59633

many thanks,
peter

-- 
petre rodan
<kaiowas@gentoo.org>
Developer,
Hardened Gentoo Linux

[-- Attachment #1.2: ntpd.diff --]
[-- Type: text/plain, Size: 1002 bytes --]

--- /root/public_html/policy/nsa/file_contexts/program/ntpd.fc	2004-06-25 23:02:43.000000000 +0300
+++ /etc/security/selinux/src/policy/file_contexts/program/ntpd.fc	2004-10-05 10:20:01.034334096 +0300
@@ -10,3 +10,11 @@
 /var/run/ntpd.pid		--	system_u:object_r:ntpd_var_run_t
 /etc/cron\.(daily|weekly)/ntp-simple -- system_u:object_r:ntpd_exec_t
 /etc/cron\.(daily|weekly)/ntp-server -- system_u:object_r:ntpd_exec_t
+
+ifdef(`distro_gentoo', `
+/usr/bin/ntpd			--	system_u:object_r:ntpd_exec_t
+/usr/bin/ntpdate		--	system_u:object_r:ntpd_exec_t
+
+# for net-misc/openntpd
+/etc/ntpd\.conf			--	system_u:object_r:net_conf_t
+')
--- /root/public_html/policy/nsa/domains/program/unused/ntpd.te	2004-10-02 01:38:20.000000000 +0300
+++ /etc/security/selinux/src/policy/domains/program/ntpd.te	2004-10-05 04:23:53.935260872 +0300
@@ -69,3 +69,8 @@
 ifdef(`firstboot.te', `
 dontaudit ntpd_t firstboot_t:fd { use };
 ')
+
+ifdef(`distro_gentoo', `
+allow ntpd_t self:capability { sys_chroot kill };
+')
+

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

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

end of thread, other threads:[~2004-10-08 18:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-05  8:25 gentoo diff for ntpd petre rodan
2004-10-05 13:14 ` Joshua Brindle
2004-10-06 10:49   ` petre rodan
2004-10-07  7:02     ` Russell Coker
2004-10-08 15:04       ` petre rodan
2004-10-08 17:59       ` James Carter

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.