Latest patches
Subsystems (2)
Fixed to Makefile to better handle local.users
Ivan's Gift policy
Fixes to expand targeted policy. (Adding dhcpc, ifconfig, hostname, consoletype)
Fixes to fs_daemon
Added a bunch of dontaudit of net_admin for many policies.
domains/program/ifconfig.te +1 -0
@@ -65,3 +65,4 @@ rhgb_domain(ifconfig_t) allow ifconfig_t userdomain:fd use; +dontaudit ifconfig_t root_t:file read;
domains/program/initrc.te +1 -0
@@ -244,6 +244,7 @@ # ifdef(`targeted_policy', ` type run_init_exec_t, file_type, sysadmfile, exec_type; +type run_init_t, domain; domain_auto_trans(unconfined_t, initrc_exec_t, initrc_t) allow unconfined_t initrc_t:dbus { acquire_svc send_msg }; allow initrc_t unconfined_t:dbus { acquire_svc send_msg };
domains/program/login.te +1 -0
@@ -187,6 +187,7 @@ # Allow setting of attributes on power management devices. allow local_login_t power_device_t:chr_file { getattr setattr }; +dontaudit local_login_t init_t:fd use; ################################# #
domains/program/unused/apache.te +2 -1
@@ -157,6 +157,7 @@ # Allow the httpd_t the capability to bind to a port and various other stuff ############################################################################ allow httpd_t self:capability { chown dac_override kill setgid setuid net_bind_service sys_tty_config }; +dontaudit httpd_t self:capability net_admin; ################################################# # Allow the httpd_t to read the web servers config files
@@ -206,7 +207,7 @@ # need ioctl for php ############################################### allow httpd_t etc_t:file { read getattr ioctl }; -allow httpd_t etc_t:lnk_file read; +allow httpd_t etc_t:lnk_file { getattr read }; # Run SSI execs in system CGI script domain. if (httpd_ssi_exec) {
domains/program/unused/consoletype.te +1 -1
@@ -8,7 +8,7 @@ # # Rules for the consoletype_t domain. # -# consoletype_t is the domain for the ifconfig program. +# consoletype_t is the domain for the consoletype program. # consoletype_exec_t is the type of the corresponding program. # type consoletype_t, domain;
domains/program/unused/fs_daemon.te +13 -2
@@ -3,13 +3,24 @@ # Author: Russell Coker <[email protected]> # X-Debian-Packages: smartmontools -daemon_domain(fsdaemon, `, fs_domain') +daemon_domain(fsdaemon, `, fs_domain, privmail') allow fsdaemon_t self:unix_dgram_socket create_socket_perms; +allow fsdaemon_t self:unix_stream_socket create_stream_socket_perms; # for config allow fsdaemon_t etc_t:file { getattr read }; allow fsdaemon_t device_t:dir read; allow fsdaemon_t fixed_disk_device_t:blk_file rw_file_perms; -allow fsdaemon_t self:capability { sys_rawio sys_admin }; +allow fsdaemon_t self:capability { setgid sys_rawio sys_admin }; allow fsdaemon_t etc_runtime_t:file { getattr read }; + +can_exec_any(fsdaemon_t) +allow fsdaemon_t self:fifo_file rw_file_perms; +can_network_udp(fsdaemon_t) +tmp_domain(fsdaemon) +allow system_mail_t fsdaemon_tmp_t:file { getattr ioctl read }; + +dontaudit fsdaemon_t devpts_t:dir search; +allow fsdaemon_t proc_t:file { getattr read }; +dontaudit system_mail_t fixed_disk_device_t:blk_file read;
domains/program/unused/gift.te +9 -0
@@ -0,0 +1,9 @@ +# DESC - giFT file sharing tool +# +# Author: Ivan Gyurdiev <[email protected]> +# + +type gift_exec_t, file_type, exec_type, sysadmfile; +type giftd_exec_t, file_type, exec_type, sysadmfile; + +# Everything else is in macros/gift_macros.te
domains/program/unused/pam.te +1 -0
@@ -37,3 +37,4 @@ allow initrc_t pam_var_run_t:dir rw_dir_perms; allow initrc_t pam_var_run_t:file { getattr read unlink }; +dontaudit pam_t initrc_var_run_t:file { read write };
domains/program/unused/rpcd.te +1 -0
@@ -17,6 +17,7 @@ allow $1_t etc_t:file { getattr read }; read_locale($1_t) allow $1_t self:capability net_bind_service; +dontaudit $1_t self:capability net_admin; allow $1_t var_t:dir { getattr search }; allow $1_t var_lib_t:dir search;
domains/program/unused/ypbind.te +1 -0
@@ -16,6 +16,7 @@ # Use capabilities. allow ypbind_t self:capability { net_bind_service }; +dontaudit ypbind_t self:capability net_admin; # Use the network. can_network(ypbind_t)
file_contexts/program/dbusd.fc +1 -1
@@ -1,3 +1,3 @@ -/usr/bin/dbus-daemon-1 -- system_u:object_r:system_dbusd_exec_t +/usr/bin/dbus-daemon(-1)? -- system_u:object_r:system_dbusd_exec_t /etc/dbus-1(/.*)? system_u:object_r:etc_dbusd_t /var/run/dbus(/.*)? system_u:object_r:system_dbusd_var_run_t
file_contexts/program/gift.fc +5 -0
@@ -0,0 +1,5 @@ +/usr/(local/)?bin/giftd -- system_u:object_r:giftd_exec_t +/usr/(local/)?bin/giftui -- system_u:object_r:gift_exec_t +/usr/(local/)?bin/giFToxic -- system_u:object_r:gift_exec_t +/usr/(local/)?bin/apollon -- system_u:object_r:gift_exec_t +HOME_DIR/\.giFT(/.*)? system_u:object_r:ROLE_gift_home_t
macros/program/gift_macros.te +113 -0
113 lines not on this page · raw message
macros/program/mplayer_macros.te +5 -0
@@ -85,6 +85,11 @@ # Read home directory content r_dir_file($1_mplayer_t, $1_home_t); +# Legacy domain issues +if (allow_mplayer_execstack) { +allow $1_mplayer_t $1_mplayer_tmpfs_t:file execute; +} + ') dnl end mplayer_domain ############################
Makefile +5 -4
@@ -77,12 +77,12 @@ all: policy -tmp/valid_fc: $(APPFILES) $(ROOTFILES) $(LOADPATH) $(FCPATH) $(USERPATH)/system.users $(USERPATH)/local.users +tmp/valid_fc: $(APPFILES) $(ROOTFILES) $(LOADPATH) $(FCPATH) @echo "Validating file_contexts ..." $(SETFILES) -q -c $(LOADPATH) $(FCPATH) @touch tmp/valid_fc -install: tmp/valid_fc +install: tmp/valid_fc $(USERPATH)/local.users $(USERPATH)/system.users: $(ALL_TUNABLES) $(USER_FILES) policy.conf @mkdir -p $(USERPATH)
@@ -96,7 +96,7 @@ $(USERPATH)/local.users: local.users @mkdir -p $(USERPATH) - install -m 644 $< $@ + install -C -b -m 644 $< $@ $(CONTEXTPATH)/files/media: appconfig/media mkdir -p $(CONTEXTPATH)/files/
@@ -207,7 +207,8 @@ file_contexts/misc: mkdir -p file_contexts/misc -$(FCPATH): $(FC) + +$(FCPATH): $(FC) $(USERPATH)/system.users @mkdir -p $(CONTEXTPATH)/files install -m 644 $(FC) $(FCPATH) install -m 644 $(HOMEDIR_TEMPLATE) $(HOMEDIRPATH)
targeted/domains/program/xdm.te +1 -0
@@ -18,4 +18,5 @@ type xdm_rw_etc_t, file_type, sysadmfile; type xdm_var_run_t, file_type, sysadmfile; type xdm_var_lib_t, file_type, sysadmfile; +type xdm_tmp_t, file_type, sysadmfile; domain_auto_trans(initrc_t, xdm_exec_t, xdm_t)
tunables/distro.tun +1 -1
@@ -5,7 +5,7 @@ # appropriate ifdefs. -dnl define(`distro_redhat') +define(`distro_redhat') dnl define(`distro_suse')
tunables/tunable.tun +6 -6
@@ -1,27 +1,27 @@ # Allow users to execute the mount command -dnl define(`user_can_mount') +define(`user_can_mount') # Allow rpm to run unconfined. -dnl define(`unlimitedRPM') +define(`unlimitedRPM') # Allow privileged utilities like hotplug and insmod to run unconfined. -dnl define(`unlimitedUtils') +define(`unlimitedUtils') # Allow rc scripts to run unconfined, including any daemon # started by an rc script that does not have a domain transition # explicitly defined. -dnl define(`unlimitedRC') +define(`unlimitedRC') # Allow sysadm_t to directly start daemons define(`direct_sysadm_daemon') # Do not audit things that we know to be broken but which # are not security risks -dnl define(`hide_broken_symptoms') +define(`hide_broken_symptoms') # Allow user_r to reach sysadm_r via su, sudo, or userhelper. # Otherwise, only staff_r can do so. -dnl define(`user_canbe_sysadm') +define(`user_canbe_sysadm') # Allow xinetd to run unconfined, including any services it starts # that do not have a domain transition explicitly defined.
Merged.
Also:
- Made sysadm_r the first role for root, so root's home will be labled as sysadm_home_dir_t instead of staff_home_dir_t.
- Modified fs_use and Makefile to reflect jfs now supporting security xattrs.
- Added an ifdef to nrpe.fc to prevent duplicate nagios and netsaint rules.
Quoted 10 lines · Daniel J Walsh
Fixed to
Makefileto better handle local.usersIvan's Gift policy
Fixes to expand targeted policy. (Adding dhcpc, ifconfig, hostname, consoletype)
Fixes to
fs_daemonAdded a bunch of dontaudit of
net_adminfor many policies.
Signature · 8 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.
Quoted 1 line · Daniel J Walsh
Fixed to
Makefileto better handle local.users
Why is system.users a dependency of $(FCPATH) while local.users is a dependency of install?
Signature · 8 lines
Stephen Smalley <[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.
Quoted 12 lines · Stephen Smalley
Quoted 3 lines · Daniel J Walsh
Fixed to
Makefileto better handle local.usersWhy is system.users a dependency of $(FCPATH) while local.users is a dependency of install?
We don't want to replace local.users on a make reload, since it is admin customizable.
Signature · 4 lines
-- 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.