Skip to contentSkip to conversation

gentoo diff for ntpd, gpm

PATCH petre rodan 2 participants 2 messages Nov 19, 2004 – Nov 23, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

gpm:
gpm_conf_t label for /etc/gpm(/.*)?

ntpd:
logrotate_exec_t has been added in a ifdef('logrotate some time ago 2 file contexts tweaked to support gentoo file locations

bye,
peter

Signature · 4 lines
petre rodan
<[email protected]>
Developer,
Hardened Gentoo Linux
root/cvs/cvs.gentoo.org/gentoo-projects/selinux/gpm/gpm.fc renamed from root/public_html/policy/nsa/file_contexts/program/gpm.fc +1 -0
@@ -2,3 +2,4 @@
 /dev/gpmctl		-s	system_u:object_r:gpmctl_t
 /dev/gpmdata		-p	system_u:object_r:gpmctl_t
 /usr/sbin/gpm		--	system_u:object_r:gpm_exec_t
+/etc/gpm(/.*)?			system_u:object_r:gpm_conf_t
root/cvs/cvs.gentoo.org/gentoo-projects/selinux/gpm/gpm.te renamed from root/public_html/policy/nsa/domains/program/unused/gpm.te +6 -0
@@ -15,10 +15,14 @@
 #
 daemon_domain(gpm)
 
 type gpmctl_t, file_type, sysadmfile, dev_fs;
 
 tmp_domain(gpm)
 
+#Allow to read the /etc/gpm/ conf files
+type gpm_conf_t, file_type, sysadmfile;
+r_dir_file(gpm_t, gpm_conf_t)
+
 # Use capabilities.
 allow gpm_t self:capability { setuid dac_override sys_admin sys_tty_config };
 
@@ -28,6 +32,8 @@
 allow gpm_t self:unix_dgram_socket create_socket_perms;
 allow gpm_t self:unix_stream_socket create_stream_socket_perms;
 
+allow gpm_t mouse_device_t:chr_file rw_file_perms;
+
 # Read and write ttys.
 allow gpm_t tty_device_t:chr_file rw_file_perms;
 
root/cvs/cvs.gentoo.org/gentoo-projects/selinux/ntp/ntpd.fc renamed from root/public_html/policy/nsa/file_contexts/program/ntpd.fc +2 -2
@@ -1,11 +1,11 @@
 /var/lib/ntp(/.*)?			system_u:object_r:ntp_drift_t
 /etc/ntp/data(/.*)?			system_u:object_r:ntp_drift_t
-/etc/ntp(d)?\.conf		--	system_u:object_r:net_conf_t
+/etc/ntp(d)?\.conf(.sv)?	--	system_u:object_r:net_conf_t
 /etc/ntp/step-tickers		--	system_u:object_r:net_conf_t
 /usr/sbin/ntpd			--	system_u:object_r:ntpd_exec_t
 /usr/sbin/ntpdate		--	system_u:object_r:ntpdate_exec_t
 /var/log/ntpstats(/.*)?			system_u:object_r:ntpd_log_t
-/var/log/ntpd.*			--	system_u:object_r:ntpd_log_t
+/var/log/ntp.*			--	system_u:object_r:ntpd_log_t
 /var/log/xntpd.*		--	system_u:object_r:ntpd_log_t
 /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
root/cvs/cvs.gentoo.org/gentoo-projects/selinux/ntp/ntpd.te renamed from root/public_html/policy/nsa/domains/program/unused/ntpd.te +1 -1
@@ -53,7 +53,7 @@
 can_exec(ntpd_t, initrc_exec_t)
 allow ntpd_t self:fifo_file { read write getattr };
 allow ntpd_t etc_runtime_t:file r_file_perms;
-can_exec(ntpd_t, { bin_t shell_exec_t sbin_t ls_exec_t logrotate_exec_t ntpd_exec_t })
+can_exec(ntpd_t, { bin_t shell_exec_t sbin_t ls_exec_t ntpd_exec_t })
 allow ntpd_t { sbin_t bin_t }:dir search;
 allow ntpd_t bin_t:lnk_file read;
 allow ntpd_t sysctl_kernel_t:dir search;
#1 lore raw

Merged.

Quoted 9 lines · petre rodan

gpm:
gpm_conf_t label for /etc/gpm(/.*)?

ntpd:
logrotate_exec_t has been added in a ifdef('logrotate some time ago 2 file contexts tweaked to support gentoo file locations

bye,
peter

Signature · 7 lines
James Carter <[email protected]>
National Security Agency

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.