latest diff
Several Ivan Cleanups of x_client_macro, tvtime, mozilla, mplayer
Some cleanup of the dovecot policy, adding keys
I think we can remove the hostname policy, it adds little value. I added don't audit sys_admin to dhcpc which is triggered by hostname being run by dhcp. Code seems to work without allowing this privs. I think it would work fine without hostname policy. I think we could probably get rid of consoletype also.
Moved arpwatch out of mta.te
Add syslogng support to syslog.te
Dan
domains/program/crond.te +2 -2
@@ -205,11 +205,11 @@ r_dir_file(system_crond_t, file_context_t) can_getsecurity(system_crond_t) } -allow system_crond_t removable_t:filesystem { getattr }; +allow system_crond_t removable_t:filesystem getattr; # # Required for webalizer # ifdef(`apache.te', ` allow system_crond_t httpd_log_t:file { getattr read }; ') -dontaudit crond_t self:capability { sys_tty_config }; +dontaudit crond_t self:capability sys_tty_config;
domains/program/logrotate.te +1 -1
@@ -128,7 +128,7 @@ allow logrotate_t fs_t:filesystem getattr; can_exec(logrotate_t, shell_exec_t) -can_exec(logrotate_t, hostname_exec_t) +ifdef(`hostname.te', `can_exec(logrotate_t, hostname_exec_t)') can_exec(logrotate_t,logfile) allow logrotate_t net_conf_t:file { getattr read };
domains/program/syslogd.te +11 -2
@@ -36,7 +36,7 @@ allow syslogd_t etc_t:file r_file_perms; # Use capabilities. -allow syslogd_t self:capability { dac_override net_bind_service sys_resource sys_tty_config }; +allow syslogd_t self:capability { dac_override net_admin net_bind_service sys_resource sys_tty_config }; # Modify/create log files. create_append_log_file(syslogd_t, var_log_t)
@@ -103,5 +103,14 @@ allow syslogd_t { tmpfs_t devpts_t }:dir search; dontaudit syslogd_t unlabeled_t:file read; dontaudit syslogd_t { userpty_type devpts_t }:chr_file getattr; -allow syslogd_t self:capability net_admin; allow syslogd_t self:netlink_route_socket r_netlink_socket_perms; +ifdef(`targeted_policy', ` +allow syslogd_t var_run_t:fifo_file { ioctl read write }; +') + +bool use_syslogng false; + +if (use_syslogng) { +allow syslogd_t proc_kmsg_t:file write; +allow syslogd_t self:capability { sys_admin chown }; +}
domains/program/unused/arpwatch.te +6 -0
@@ -40,3 +40,9 @@ allow initrc_t arpwatch_data_t:file create; ')dnl end distro_gentoo +# why is mail delivered to a directory of type arpwatch_data_t? +allow mta_delivery_agent arpwatch_data_t:dir search; +allow { system_mail_t mta_user_agent } arpwatch_tmp_t:file rw_file_perms; +ifdef(`hide_broken_symptoms', ` +dontaudit { system_mail_t mta_user_agent } arpwatch_t:packet_socket { read write }; +')
domains/program/unused/consoletype.te +1 -0
@@ -22,6 +22,7 @@ domain_auto_trans(initrc_t, consoletype_exec_t, consoletype_t) allow consoletype_t tty_device_t:chr_file { getattr ioctl write }; +allow consoletype_t devtty_t:chr_file { read write }; allow consoletype_t initrc_devpts_t:chr_file { read write getattr ioctl }; ifdef(`xdm.te', `
domains/program/unused/cups.te +2 -0
@@ -71,6 +71,8 @@ can_exec(cupsd_t, cupsd_exec_t) allow cupsd_t cupsd_exec_t:dir search; allow cupsd_t cupsd_exec_t:lnk_file read; +allow cupsd_t reserved_port_t:tcp_socket name_bind; +dontaudit cupsd_t reserved_port_type:tcp_socket name_bind; allow cupsd_t self:unix_stream_socket create_socket_perms; allow cupsd_t self:unix_dgram_socket create_socket_perms;
domains/program/unused/dhcpc.te +1 -0
@@ -86,6 +86,7 @@ # Use capabilities allow dhcpc_t self:capability { dac_override fsetid net_admin net_raw net_bind_service sys_resource sys_tty_config }; +dontaudit dhcpc_t self:capability sys_admin; # for access("/etc/bashrc", X_OK) on Red Hat dontaudit dhcpc_t self:capability { dac_read_search sys_module };
domains/program/unused/dovecot.te +15 -2
@@ -3,13 +3,19 @@ # Author: Russell Coker <[email protected]> # X-Debian-Packages: dovecot-imapd, dovecot-pop3d +# +# Main dovecot daemon +# daemon_domain(dovecot, `, privhome') +etc_domain(dovecot); allow dovecot_t dovecot_var_run_t:sock_file create_file_perms; can_exec(dovecot_t, dovecot_exec_t) type dovecot_cert_t, file_type, sysadmfile; +type dovecot_passwd_t, file_type, sysadmfile; +type dovecot_spool_t, file_type, sysadmfile; allow dovecot_t self:capability { dac_override dac_read_search chown net_bind_service setgid setuid sys_chroot }; allow dovecot_t self:process setrlimit;
@@ -25,9 +31,10 @@ can_exec(dovecot_t, bin_t) allow dovecot_t pop_port_t:tcp_socket name_bind; -allow dovecot_t urandom_device_t:chr_file read; +allow dovecot_t urandom_device_t:chr_file { getattr read }; allow dovecot_t cert_t:dir search; allow dovecot_t dovecot_cert_t:file { getattr read }; +allow dovecot_t cert_t:dir search; allow dovecot_t { self proc_t }:file { getattr read }; allow dovecot_t self:fifo_file rw_file_perms;
@@ -36,11 +43,17 @@ allow dovecot_t tmp_t:dir search; rw_dir_file(dovecot_t, mail_spool_t) +create_dir_file(dovecot_t, dovecot_spool_t) +create_dir_file(mta_delivery_agent, dovecot_spool_t) allow dovecot_t mail_spool_t:lnk_file read; allow dovecot_t var_spool_t:dir { search }; +# +# Dovecot auth daemon +# daemon_sub_domain(dovecot_t, dovecot_auth, `, auth_chkpwd') allow dovecot_auth_t self:process { fork signal_perms }; +allow dovecot_auth_t self:capability { setgid setuid }; allow dovecot_auth_t dovecot_t:unix_stream_socket { getattr accept read write ioctl }; allow dovecot_auth_t self:unix_dgram_socket create_socket_perms; allow dovecot_auth_t self:unix_stream_socket create_stream_socket_perms;
@@ -50,6 +63,6 @@ allow dovecot_auth_t { self proc_t }:file { getattr read }; read_locale(dovecot_auth_t) read_sysctl(dovecot_auth_t) -allow dovecot_auth_t sysctl_t:dir search; +allow dovecot_auth_t dovecot_passwd_t:file { getattr read }; dontaudit dovecot_auth_t selinux_config_t:dir search;
domains/program/unused/firstboot.te +2 -0
@@ -107,8 +107,10 @@ allow firstboot_t var_run_t:dir getattr; allow firstboot_t var_t:dir getattr; +ifdef(`hostname.te', ` allow hostname_t devtty_t:chr_file { read write }; allow hostname_t firstboot_t:fd use; +') ifdef(`iptables.te', ` allow iptables_t devtty_t:chr_file { read write }; allow iptables_t firstboot_t:fd use;
domains/program/unused/games.te +3 -0
@@ -13,5 +13,8 @@ rw_dir_create_file(games_t, games_data_t) r_dir_file(initrc_t, games_data_t) +# Run in user_t +bool disable_games_trans false; + # Everything else is in the x_client_domain macro in # macros/program/x_client_macros.te.
domains/program/unused/mozilla.te +3 -0
@@ -14,5 +14,8 @@ # Allow mozilla to write files in the user home directory bool mozilla_writehome false; +# Run in user_t +bool disable_mozilla_trans false; + # Everything else is in the mozilla_domain macro in # macros/program/mozilla_macros.te.
domains/program/unused/mrtg.te +1 -1
@@ -94,5 +94,5 @@ dontaudit mrtg_t root_t:lnk_file getattr; allow mrtg_t self:capability { setgid setuid }; -can_exec(mrtg_t, hostname_exec_t) +ifdef(`hostname.te', `can_exec(mrtg_t, hostname_exec_t)') allow mrtg_t var_spool_t:dir search;
domains/program/unused/mta.te +1 -10
@@ -59,15 +59,6 @@ allow { system_mail_t mta_user_agent } privmail:fifo_file { read write }; allow { system_mail_t mta_user_agent } admin_tty_type:chr_file { read write }; -ifdef(`arpwatch.te', ` -# why is mail delivered to a directory of type arpwatch_data_t? -allow mta_delivery_agent arpwatch_data_t:dir search; -allow { system_mail_t mta_user_agent } arpwatch_tmp_t:file rw_file_perms; -ifdef(`hide_broken_symptoms', ` -dontaudit { system_mail_t mta_user_agent } arpwatch_t:packet_socket { read write }; -') -')dnl end if arpwatch.te - allow mta_delivery_agent home_root_t:dir { getattr search }; # for /var/spool/mail
@@ -81,4 +72,4 @@ allow mta_delivery_agent { etc_runtime_t proc_t }:file { getattr read }; allow system_mail_t etc_runtime_t:file { getattr read }; -allow system_mail_t urandom_device_t:chr_file read; +allow system_mail_t { random_device_t urandom_device_t }:chr_file read;
file_contexts/program/dovecot.fc +3 -0
@@ -1,4 +1,6 @@ # for Dovecot POP and IMAP server +/etc/dovecot.conf.* system_u:object_r:dovecot_etc_t +/etc/dovecot.passwd.* system_u:object_r:dovecot_passwd_t /usr/sbin/dovecot -- system_u:object_r:dovecot_exec_t ifdef(`distro_redhat', ` /usr/libexec/dovecot/dovecot-auth -- system_u:object_r:dovecot_auth_exec_t
@@ -10,3 +12,4 @@ /usr/share/ssl/private/dovecot\.pem -- system_u:object_r:dovecot_cert_t /var/run/dovecot(-login)?(/.*)? system_u:object_r:dovecot_var_run_t /usr/lib(64)?/dovecot/.+ -- system_u:object_r:bin_t +/var/spool/dovecot(/.*)? system_u:object_r:dovecot_spool_t
macros/program/games_domain.te +17 -2
@@ -10,7 +10,23 @@ # # define(`games_domain', ` -x_client_domain($1, `games', `, transitionbool') + +type $1_games_t, domain, nscd_client_domain; + +# Type transition +if (! disable_games_trans) { +domain_auto_trans($1_t, games_exec_t, $1_games_t) +} +role $1_r types $1_games_t; + +# X access, Private tmp +x_client_domain($1, games) +tmp_domain($1_games) + +# Games seem to need this +if (allow_execmem) { +allow $1_games_t self:process execmem; +} allow $1_games_t var_t:dir { search getattr }; rw_dir_create_file($1_games_t, games_data_t)
@@ -29,7 +45,6 @@ dontaudit $1_games_t sysctl_t:dir search; -tmp_domain($1_games) allow $1_games_t urandom_device_t:chr_file { getattr ioctl read }; ifdef(`xdm.te', ` allow $1_games_t xdm_tmp_t:dir rw_dir_perms;
macros/program/gift_macros.te +7 -9
@@ -12,20 +12,18 @@ define(`gift_domain', ` -# Connect to X -x_client_domain($1, gift, `') - -# Transition +# Type transition +type $1_gift_t, domain, nscd_client_domain; domain_auto_trans($1_t, gift_exec_t, $1_gift_t) -can_exec($1_gift_t, gift_exec_t) role $1_r types $1_gift_t; +# X access, Home access +x_client_domain($1, gift) +home_domain($1, gift) + # Self permissions allow $1_gift_t self:process getsched; -# Home files -home_domain($1, gift) - # Fonts, icons r_dir_file($1_gift_t, usr_t) r_dir_file($1_gift_t, fonts_t)
@@ -56,7 +54,7 @@ # giftui looks in .icons, .themes, .fonts-cache. dontaudit $1_gift_t $1_home_t:dir { getattr read search }; -dontaudit $1_gift_t $1_home_t:file { getattr read }; +dontaudit $1_gift_t $1_home_t:file { getattr read unlink }; ') dnl gift_domain
macros/program/mozilla_macros.te +8 -4
@@ -16,12 +16,16 @@ # provided separately in domains/program/mozilla.te. # define(`mozilla_domain',` -x_client_domain($1, mozilla, `, web_client_domain, privlog, transitionbool') +type $1_mozilla_t, domain, web_client_domain, privlog; -# Configuration -home_domain($1, mozilla) +# Type transition +if (! disable_mozilla_trans) { +domain_auto_trans($1_t, mozilla_exec_t, $1_mozilla_t) +} +role $1_r types $1_mozilla_t; -# Allow mozilla to browse files +home_domain($1, mozilla) +x_client_domain($1, mozilla) file_browse_domain($1_mozilla_t) allow $1_mozilla_t sound_device_t:chr_file rw_file_perms;
macros/program/mplayer_macros.te +12 -8
@@ -64,13 +64,15 @@ define(`mplayer_domain',` -# Derive from X client domain -x_client_domain($1, `mplayer', `') +type $1_mplayer_t, domain; -# Mplayer configuration here -home_domain($1, mplayer) +# Type transition +domain_auto_trans($1_t, mplayer_exec_t, $1_mplayer_t) +role $1_r types $1_mplayer_t; -# Allow mplayer to browse files +# Home access, X access, Browse files +home_domain($1, mplayer) +x_client_domain($1, mplayer) file_browse_domain($1_mplayer_t) # Mplayer common stuff
@@ -85,6 +87,9 @@ # Read home directory content r_dir_file($1_mplayer_t, $1_home_t); +# Read CDs +r_dir_file($1_mplayer_t, removable_t); + # Legacy domain issues if (allow_mplayer_execstack) { allow $1_mplayer_t $1_mplayer_tmpfs_t:file execute;
@@ -101,12 +106,11 @@ # FIXME: privhome temporarily removed... type $1_mencoder_t, domain; -# Transition +# Type transition domain_auto_trans($1_t, mencoder_exec_t, $1_mencoder_t) -can_exec($1_mencoder_t, mencoder_exec_t) role $1_r types $1_mencoder_t; -# Read home config +# Access mplayer home domain home_domain_access($1_mencoder_t, $1, mplayer) # Mplayer common stuff
macros/program/screen_macros.te +1 -1
@@ -21,7 +21,7 @@ ifdef(`screen.te', ` define(`screen_domain',` # Derived domain based on the calling user domain and the program. -type $1_screen_t, domain, privlog, privfd; +type $1_screen_t, domain, privlog, privfd, nscd_client_domain; # Transition from the user domain to this domain. domain_auto_trans($1_t, screen_exec_t, $1_screen_t)
macros/program/tvtime_macros.te +8 -2
@@ -19,16 +19,22 @@ ifdef(`tvtime.te', ` define(`tvtime_domain',` +# Type transition +type $1_tvtime_t, domain, nscd_client_domain; +domain_auto_trans($1_t, tvtime_exec_t, $1_tvtime_t) +role $1_r types $1_tvtime_t; + +# Home access, X access home_domain($1, tvtime) +tmp_domain($1_tvtime, `', `{ file dir fifo_file }') x_client_domain($1, tvtime) allow $1_tvtime_t urandom_device_t:chr_file read; allow $1_tvtime_t clock_device_t:chr_file { ioctl read }; allow $1_tvtime_t kernel_t:system ipc_info; -allow $1_tvtime_t sound_device_t:chr_file read; +allow $1_tvtime_t sound_device_t:chr_file { ioctl read }; allow $1_tvtime_t $1_home_t:dir { getattr read search }; allow $1_tvtime_t $1_home_t:file { getattr read }; -tmp_domain($1_tvtime) allow $1_tvtime_t self:capability { setuid sys_nice sys_resource }; allow $1_tvtime_t self:process setsched; allow $1_tvtime_t usr_t:file { getattr read };
macros/program/x_client_macros.te +2 -30
@@ -37,39 +37,11 @@ ') # -# x_client_domain(domain_prefix) +# x_client_domain(user, app) # -# Define a derived domain for an X program when executed by -# a user domain. -# -# The type declaration for the executable type for this program ($2_exec_t) -# must be provided separately! -# -# The first parameter is the base name for the domain/role (EG user or sysadm) -# The second parameter is the program name (EG $2) -# The third parameter is the attributes for the domain (if any) +# Defines common X access rules for the user_app_t domain # define(`x_client_domain',` -# Derived domain based on the calling user domain and the program. -type $1_$2_t, domain, nscd_client_domain $3; - -ifelse(index(`$3', `transitionbool'), -1, ` -domain_auto_trans($1_t, $2_exec_t, $1_$2_t) -can_exec($1_$2_t, $2_exec_t) -', ` -# Only do it once -ifelse($1, user, ` -bool disable_$2 false; -') -# Transition from the user domain to the derived domain. -if (! disable_$2) { -domain_auto_trans($1_t, $2_exec_t, $1_$2_t) -can_exec($1_$2_t, $2_exec_t) -} -') - -# The user role is authorized for this domain. -role $1_r types $1_$2_t; # This domain is granted permissions common to most domains (including can_net) can_network($1_$2_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.
Quoted 1 line · Daniel J Walsh
I think we can remove the hostname policy, it adds little value.
[cut]
Quoted 2 lines
I think it would work fine without hostname policy. I think we could probably get rid of consoletype also.
I don't remember why hostname and consoletype were added in the first place, but a quick look through them makes me think that its so we don't have to give sys_admin capability to initrc_t when these programs are run from init scripts. Sys_admin is a huge set a privileges, so I'd say its worthwhile to keep them around.
domains/program/syslogd.te line 116
Quoted 7 lines
plain text document attachment (diff)
domains/program/syslogd.te +6
-0+bool use_syslogng false; + +if (use_syslogng) { +allow syslogd_t proc_kmsg_t:file write; +allow syslogd_t self:capability { sys_admin chown }; +}
Shouldn't this go in the ifdef(klogd.te',',` block? Its already there for syslogds that also do the klogd functions, like syslog-ng. In fact, I think that block was originally added for syslog-ng. That should eliminate the need for a boolean too.
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- 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 13 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh
I think we can remove the hostname policy, it adds little value.
[cut]
Quoted 3 lines
I think it would work fine without hostname policy. I think we could probably get rid of consoletype also.
Quoted 8 lines
I don't remember why hostname and consoletype were added in the first place, but a quick look through them makes me think that its so we don't have to give
sys_admincapability toinitrc_twhen these programs are run from init scripts.Sys_adminis a huge set a privileges, so I'd say its worthwhile to keep them around.
Ok, that is what I saw. I saw the sys_admin avc messages, but there was no failure in setting up the hostname. So I put a dontaudit in dhcpc and everything seems to work. Does anyone know if these apps actually need this priv or are just asking for it even though
they don't need it. Problem with hostname is that lots of tools are doing stuff like
hostname >> logfile. Which causes hostname to need write access to postgress_log_t, ...
Quoted 6 lines
Quoted 6 lines
plain text document attachment (diff)
domains/program/syslogd.te +5
-0+bool use_syslogng false; + +if (use_syslogng) { +allow syslogd_t proc_kmsg_t:file write; +allow syslogd_t self:capability { sys_admin chown };
Quoted 11 lines
Quoted 3 lines
+}
Shouldn't this go in the ifdef(
klogd.te',',` block? Its already there for syslogds that also do the klogd functions, like syslog-ng. In fact, I think that block was originally added for syslog-ng. That should eliminate the need for a boolean too.
The protections are not needed for standard syslog, so I think we should have a boolean saying whether you are using standard syslog of syslog-ng (Targeted policy does not ship klog. Now maybe the other proc_kmsg stuff should be under the boolean? Maybe this should be only for Red Hat since we do not ship klog.te in targeted policy. Or should we ship klog.te for targeted policy?
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.
Quoted 12 lines · Daniel J Walsh
Quoted 10 lines · Christopher J. PeBenito
Quoted 2 lines · Daniel J Walsh
I think we can remove the hostname policy, it adds little value.
[cut]
Quoted 3 lines
I think it would work fine without hostname policy. I think we could probably get rid of consoletype also.
Quoted 5 lines
Quoted 5 lines
I don't remember why hostname and consoletype were added in the first place, but a quick look through them makes me think that its so we don't have to give
sys_admincapability toinitrc_twhen these programs are run from init scripts.Sys_adminis a huge set a privileges, so I'd say its worthwhile to keep them around.
Would it be possible to decompose sys_admin into a set of selinux permissions? I think this would be the best solution. Probably difficult with the current design, but maybe capable() could get a second parameter specifying what type of access is to be granted, or the code could call an lsm function in addition to the capable() call.
Is this doable?
Thomas
Signature · 7 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA D09E C562 2BAE B2F4 ABE7 -- 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 7 lines · Thomas Bleher
Would it be possible to decompose
sys_admininto a set of selinux permissions? I think this would be the best solution. Probably difficult with the current design, but maybecapable()could get a second parameter specifying what type of access is to be granted, or the code could call an lsm function in addition to thecapable()call.
Is this doable?
Yes, feel free to suggest/submit patches (to the lsm mailing list and lkml) to add new LSM hooks to code where the existing capable call provides insufficient granularity, and then move the capable call into the hook function implementation for the dummy and capability modules. The goal should be to replace capable() calls with more flexible LSM hooks wherever it makes sense to do so, but doing that completely in the first round of LSM was viewed as impractical (e.g. >500 calls to capable in the kernel tree). Then for SELinux, you can define new permissions in the system class or create new classes as appropriate to provide finer-grained controls.
Another item that ultimately needs to be addressed is the mapping of device and filesystem ioctls to more general permission check calls to the security module, so that interpretation can remain in the device and filesystem code but reasonable controls can be applied by security policies. This would be similar to what James Morris did for the netlink message types, although that presently relies on maintaining a separate netlink message type table for SELinux (which may be a maintenance problem in the long term, and certainly won't scale for ioctls).
Another fun task would be to provide _real_ labeling and control of devices, not just device nodes in the filesystem, so that the ability to create device nodes doesn't allow one to sidestep access controls based on the device type.
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 5 lines · Daniel J Walsh
Quoted 5 lines
I don't remember why hostname and consoletype were added in the first place, but a quick look through them makes me think that its so we don't have to give
sys_admincapability toinitrc_twhen these programs are run from init scripts.Sys_adminis a huge set a privileges, so I'd say its worthwhile to keep them around.
That's correct. It was before the invention of unlimitedRC...
Quoted 3 lines
Ok, that is what I saw. I saw the
sys_adminavc messages, but there was no failure in
setting up the hostname.
I just did a quick test. Changing the hostname without sys_admin capability is impossible in Fedora kernel 2.6.11-1.1240_FC4.
Quoted 5 lines
they don't need it. Problem with hostname is that lots of tools are
doing stuff likehostname >> logfile. Which causes hostname to need write access to
postgress_log_t, ...
No problem, you just use can_exec(postgresql_t, hostname_exec_t) to solve that.
Quoted 8 lines
Quoted 4 lines
Shouldn't this go in the ifdef(
klogd.te',',` block? Its already there for syslogds that also do the klogd functions, like syslog-ng. In fact, I think that block was originally added for syslog-ng. That should eliminate the need for a boolean too.The protections are not needed for standard syslog, so I think we should have a boolean
saying whether you are using standard syslog of syslog-ng
I don't think that there is any point in such a boolean. Gentoo (who support syslog-ng) don't use such booleans but use ifdef's instead. So there is no benefit for Gentoo in that. With RHEL and Fedora we don't support syslog-ng so there doesn't seem to be any benefit for Red Hat users. For Debian the defined procedure is to remove klogd.te if you want to use syslog-ng, so again there is no benefit from such a boolean.
Quoted 3 lines
(Targeted
policy does not
ship klog.
We should ship it. klogd has access to /proc/kmsg and /dev/mem which is to be restricted. Also klogd processes data that can be manipulated by hostile people and should be considered as a target for attack.
Signature · 9 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Merged.
Quoted 16 lines · Daniel J Walsh
Several Ivan Cleanups of
x_client_macro, tvtime, mozilla, mplayerSome cleanup of the dovecot policy, adding keys
I think we can remove the hostname policy, it adds little value. I added don't audit
sys_adminto dhcpc
which is triggered by hostname being run by dhcp. Code seems to work without allowing this privs. I
think it would work fine without hostname policy. I think we could probably get rid of consoletype also.Moved arpwatch out of mta.te
Add syslogng support to syslog.te
Dan
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.