Latest updates
Amanda changes, not sure why you didn't take them last time
Fixing some labels to march what actually ends up on disk see /boot/grub
Change firstboot to create etc_runtime_t instead of firstboot_rw_t.
Please change /opt java line to match what IBM ships
mono apps want to create files in homedirs so they need to transition (beagle)
In corecommands prelink also creates lnk_file, when it recreates executables.
/dev/adsp can have numbers
/etc/reader.conf gets created in install with etc_runtime_t
gfs supports xattr
/dev/xvc is a new kind of tty for xen
Lots of domains need term_dontaudit_use_unallocated_ttys for startup from a tty.
Apache uses ldap
bluetooth_helper started for startx needs some more privs
crontab changes for setting MLS values.
dovecot wants to read some files labeled var_t.
ldap uses a socket to communicate
NetworkManager wants to ptrace itself
setroubleshootd should be added.
spamassasin neess to be able to create a directory in the users homedir
Need a transition for keygen for anaconda to create keys with the correct context.
stunnel reads route table
and connects to smtp
X No longer needs execstack, execheap, execmem
hotplug needs setpgid
auditd_sock changed names to audit_events
Added loopback_t to allow you to define loopback devices and have mount read them
Changes to semanage
/usr/lib/ia32el/ia32x_loader needs to run unconfined_execmem_t if we have any hope of turning off allow_execmem
Quoted 1 line · Daniel J Walsh
Amanda changes, not sure why you didn't take them last time
Sorry about that, forgot to send an email about that last patch. As for this bit, I'm hesitant to remove the contexts. This policy seems to be overengineered, and since we intend to fix it, the unused types should be removed too. Otherwise we start getting dead policy, and more mess in general.
Quoted 1 line
Fixing some labels to march what actually ends up on disk see
/boot/grub
These say /boot/grup; I assume this is a typo. Also they should be in the files module.
Quoted 1 line
Change firstboot to create
etc_runtime_tinstead offirstboot_rw_t.
The type should be removed too, see above comments on amanda. /usr/share/firstboot is also labeled firstboot_rw_t, so that should be resolved too.
Quoted 1 line
Please change /opt java line to match what IBM ships
I'm concerned this is too broad. Can we get additional, more specific regexes?
Quoted 2 lines
In corecommands prelink also creates
lnk_file, when it recreates executables.
I assume this refers to the hunk in corecommands.if? I don't agree with this change. Only the executables should be specially labeled, not the symlinks.
Quoted 1 line
gfs supports xattr
IIRC, last time the question was if this was widely avaiable?
Quoted 2 lines
Lots of domains need
term_dontaudit_use_unallocated_ttysfor startup from a tty.
Can you clarify this? I don't know what you mean by "startup from a tty".
Quoted 1 line
Apache uses ldap
This reverts my change; this access is handled by auth_use_nsswitch().
Quoted 1 line
bluetooth_helperstarted for startx needs some more privs
This corenet addition seems out of place, since it doesn't have complete networking perms. Fixed the xserver_stream_connect_xdm() interface instead of the xdm addition.
Quoted 1 line
crontab changes for setting MLS values.
The userdomain sending a sigchld to crontab doesn't make sense to me. Also $1_tmp_t can't be referenced directly by this template, it needs to use the userdomain interfaces. Besides that, I think it would probably be best for crontab to have its own $1_crontab_tmp_t type anyway, unless there is a compelling reason for it to write the user's tmp files.
Why does system_crond_t need to create crond pid files?
Quoted 1 line
dovecot wants to read some files labeled
var_t.
Moved rule down.
Quoted 1 line
ldap uses a socket to communicate
Generic socket doesn't make sense here.
Quoted 1 line
NetworkManager wants to ptrace itself
I can't reproduce this on my notebook. Can you look more into this? It seems highly irregular.
Quoted 2 lines
stunnel reads route table
and connects to smtp
Is this an explicit requirement, or should it really be tcp connect to all ports?
Quoted 1 line
X No longer needs execstack, execheap, execmem
I am setting this to !distro_redhat, as this is not necessarily the case for other distros (incl RHEL4).
Quoted 1 line
Changes to semanage
Can't use these templates here. The netlink addition is handled by auth_use_nsswitch().
Quoted 2 lines
/usr/lib/ia32el/ia32x_loaderneeds to rununconfined_execmem_tif we have any hope of turning offallow_execmem
Out of curiosity, what is this program?
The ntp change shouldn't be needed, since net_bind_service is allowed by corenet_udp_bind_ntp_port(ntpd_t).
The procmail change shouldn't be needed since udp bind to inaddr_any is allowed by corenet_udp_bind_all_nodes(procmail_t).
The rpc change shouldn't be needed since all domains have self:file { getattr read };
The unconfined change should not be needed since it can do * to all domains keys (see domain.te).
Holding off on the other new policies since you said they're still WiP.
Why are the following needed?
fsadm exec a shell
initrc write locale_t
lvm_t net_admin (!)
depmod using terms other than the ones it gets from it's run interface
udev transition to dhcpc
The remainder is merged.
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 3 lines · Christopher J. PeBenito
Quoted 1 line
gfs supports xattr
IIRC, last time the question was if this was widely avaiable?
I'm not sure what your question is not did I see what dan's change was. But at this time gfs2 has selinux xtarrs. gfs(1) does not ship in any form with xattr support (although patches were done they will never be put into play). Since gfs(1) is not upstream we should continue to treat it as we always have but all gfs2 filesystems should be able to support xattrs
Quoted 4 lines
Quoted 2 lines
/usr/lib/ia32el/ia32x_loaderneeds to rununconfined_execmem_tif we have any hope of turning offallow_execmemOut of curiosity, what is this program?
it is the interpreter that allows ia32 programs to run on the intel itanium processors (ia64) It dynamically takes the x86 program and interprets it into ia64 instructions on the fly. So it makes sense that it needs to execute the memory of the instructions it just wrote.
--
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 · Christopher J. PeBenito
Quoted 2 lines · Daniel J Walsh
Amanda changes, not sure why you didn't take them last time
Sorry about that, forgot to send an email about that last patch. As for this bit, I'm hesitant to remove the contexts. This policy seems to be overengineered, and since we intend to fix it, the unused types should be removed too. Otherwise we start getting dead policy, and more mess in general.
Removed Types
Quoted 7 lines
Quoted 2 lines
Fixing some labels to march what actually ends up on disk see
/boot/grubThese say
/boot/grup; I assume this is a typo. Also they should be in the files module.
Fixed and placed in correct fc files.
Quoted 9 lines
Quoted 2 lines
Change firstboot to create
etc_runtime_tinstead offirstboot_rw_t.The type should be removed too, see above comments on amanda.
/usr/share/firstbootis also labeledfirstboot_rw_t, so that should be resolved too.
Removed Types
Quoted 7 lines
Quoted 2 lines
Please change /opt java line to match what IBM ships
I'm concerned this is too broad. Can we get additional, more specific regexes?
I went looking for this, and I believe it was placed in a IBM directory, but can not find it right now. Also not sure where BEA places there java.
Quoted 9 lines
Quoted 2 lines
In corecommands prelink also creates
lnk_file, when it recreates executables.I assume this refers to the hunk in corecommands.if? I don't agree with this change. Only the executables should be specially labeled, not the symlinks.
Changed to bin_t and sbin_t only.
Quoted 6 lines
Quoted 2 lines
gfs supports xattr
IIRC, last time the question was if this was widely avaiable?
Could swear I got email telling me to do this, but can not find now so removing.
Quoted 7 lines
Quoted 2 lines
Lots of domains need
term_dontaudit_use_unallocated_ttysfor startup from a tty.Can you clarify this? I don't know what you mean by "startup from a tty".
Log in to console terminals
ctrl-alt-f1
restart daemons, generated lots of avc messages when daemons try to talk to tty_device_t.
you will see this same pattern on almost all daemons.
Quoted 6 lines
Quoted 2 lines
Apache uses ldap
This reverts my change; this access is handled by
auth_use_nsswitch().
Removed.
Quoted 8 lines
Quoted 2 lines
bluetooth_helperstarted for startx needs some more privsThis corenet addition seems out of place, since it doesn't have complete networking perms. Fixed the
xserver_stream_connect_xdm()interface instead of the xdm addition.
Changed to use your stuff.
Quoted 10 lines
Quoted 2 lines
crontab changes for setting MLS values.
The userdomain sending a sigchld to crontab doesn't make sense to me. Also $1_tmp_t can't be referenced directly by this template, it needs to use the userdomain interfaces. Besides that, I think it would probably be best for crontab to have its own $1_crontab_tmp_t type anyway, unless there is a compelling reason for it to write the user's tmp files.
Changed to $1_crontab_tmp_t, removed the other stuff and will retest on mls.
Quoted 3 lines
Why does
system_crond_tneed to create crond pid files?
Saw an AVC but I am removing this code for now.
Quoted 12 lines
Quoted 2 lines
dovecot wants to read some files labeled
var_t.Moved rule down.
Quoted 2 lines
ldap uses a socket to communicate
Generic socket doesn't make sense here.
Should be a sock_file
Quoted 7 lines
Quoted 2 lines
NetworkManager wants to ptrace itself
I can't reproduce this on my notebook. Can you look more into this? It seems highly irregular.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=204161
Quoted 7 lines
Quoted 3 lines
stunnel reads route table
and connects to smtpIs this an explicit requirement, or should it really be tcp connect to all ports?
Probably.
Quoted 8 lines
Quoted 3 lines
X No longer needs execstack, execheap, execmem
I am setting this to !distro_redhat, as this is not necessarily the case for other distros (incl RHEL4).
Fine
Quoted 7 lines
Quoted 2 lines
Changes to semanage
Can't use these templates here. The netlink addition is handled by
auth_use_nsswitch().
Ok I removed some other netlink_route for same reason
Quoted 5 lines
Quoted 2 lines
/usr/lib/ia32el/ia32x_loaderneeds to rununconfined_execmem_tif we have any hope of turning offallow_execmemOut of curiosity, what is this program?
See eric's email
Quoted 4 lines
The ntp change shouldn't be needed, since
net_bind_serviceis allowed bycorenet_udp_bind_ntp_port(ntpd_t).
Removed
Quoted 4 lines
The procmail change shouldn't be needed since udp bind to
inaddr_anyis allowed bycorenet_udp_bind_all_nodes(procmail_t).
Removed
Quoted 4 lines
The rpc change shouldn't be needed since all domains have self:file { getattr read };
Removed
Quoted 3 lines
The unconfined change should not be needed since it can do * to all domains keys (see domain.te).
Removed
Quoted 7 lines
Holding off on the other new policies since you said they're still WiP.
Why are the following needed?
fsadm exec a shell
I am not sure, I removed until I find it.
Quoted 4 lines
initrc write
locale_t
lvm_tnet_admin(!)
Removed, might be some network file system? iscsi maybe, just guessing.
Quoted 3 lines
depmod using terms other than the ones it gets from it's run interface
Removed.
Quoted 4 lines
udev transition to dhcpc
It does when networks are plugged in, I believe.
Quoted 3 lines
The remainder is merged.
policy/modules/admin/amanda.fc +0 -50
@@ -11,61 +11,11 @@ /usr/lib(64)?/amanda -d gen_context(system_u:object_r:amanda_usr_lib_t,s0) /usr/lib(64)?/amanda/.+ -- gen_context(system_u:object_r:amanda_exec_t,s0) /usr/lib(64)?/amanda/amandad -- gen_context(system_u:object_r:amanda_inetd_exec_t,s0) -/usr/lib(64)?/amanda/amcat\.awk -- gen_context(system_u:object_r:amanda_script_exec_t,s0) -/usr/lib(64)?/amanda/amcleanupdisk -- gen_context(system_u:object_r:amanda_exec_t,s0) /usr/lib(64)?/amanda/amidxtaped -- gen_context(system_u:object_r:amanda_inetd_exec_t,s0) /usr/lib(64)?/amanda/amindexd -- gen_context(system_u:object_r:amanda_inetd_exec_t,s0) -/usr/lib(64)?/amanda/amlogroll -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/amplot\.awk -- gen_context(system_u:object_r:amanda_script_exec_t,s0) -/usr/lib(64)?/amanda/amplot\.g -- gen_context(system_u:object_r:amanda_script_exec_t,s0) -/usr/lib(64)?/amanda/amplot\.gp -- gen_context(system_u:object_r:amanda_script_exec_t,s0) -/usr/lib(64)?/amanda/amtrmidx -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/amtrmlog -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/calcsize -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/chg-chio -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/chg-chs -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/chg-manual -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/chg-mtx -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/chg-multi -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/chg-rth -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/chg-scsi -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/chg-zd-mtx -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/driver -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/dumper -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/killpgrp -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/patch-system -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/planner -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/rundump -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/runtar -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/selfcheck -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/sendbackup -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/sendsize -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/taper -- gen_context(system_u:object_r:amanda_exec_t,s0) -/usr/lib(64)?/amanda/versionsuffix -- gen_context(system_u:object_r:amanda_exec_t,s0) - -/usr/sbin/amadmin -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amcheck -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amcheckdb -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amcleanup -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amdump -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amflush -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amgetconf -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amlabel -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amoverview -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amplot -- gen_context(system_u:object_r:amanda_user_exec_t,s0) /usr/sbin/amrecover -- gen_context(system_u:object_r:amanda_recover_exec_t,s0) -/usr/sbin/amreport -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amrestore -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amrmtape -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amstatus -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amtape -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amtoc -- gen_context(system_u:object_r:amanda_user_exec_t,s0) -/usr/sbin/amverify -- gen_context(system_u:object_r:amanda_user_exec_t,s0) - /var/lib/amanda -d gen_context(system_u:object_r:amanda_var_lib_t,s0) /var/lib/amanda/\.amandahosts -- gen_context(system_u:object_r:amanda_config_t,s0) -/var/lib/amanda/\.bashrc -- gen_context(system_u:object_r:amanda_shellconfig_t,s0) -/var/lib/amanda/\.profile -- gen_context(system_u:object_r:amanda_shellconfig_t,s0) /var/lib/amanda/disklist -- gen_context(system_u:object_r:amanda_data_t,s0) /var/lib/amanda/gnutar-lists(/.*)? gen_context(system_u:object_r:amanda_gnutarlists_t,s0) /var/lib/amanda/index gen_context(system_u:object_r:amanda_data_t,s0)
policy/modules/admin/amanda.te +0 -12
@@ -33,18 +33,6 @@ type amanda_gnutarlists_t; files_type(amanda_gnutarlists_t) -# type for user startable files -type amanda_user_exec_t; -corecmd_executable_file(amanda_user_exec_t) - -# type for same awk and other scripts -type amanda_script_exec_t; -corecmd_executable_file(amanda_script_exec_t) - -# type for the shell configuration files -type amanda_shellconfig_t; -files_type(amanda_shellconfig_t) - type amanda_tmp_t; files_tmp_file(amanda_tmp_t)
policy/modules/admin/anaconda.te +6 -0
@@ -64,3 +64,9 @@ optional_policy(` usermanage_domtrans_admin_passwd(anaconda_t) ') + + +# The following is just to quiet the anaconda complaining during the install +domain_dontaudit_getattr_all_stream_sockets(anaconda_t) +dontaudit domain anaconda_t:fd use; +domain_dontaudit_use_interactive_fds(anaconda_t)
policy/modules/admin/bootloader.fc +1 -0
@@ -10,3 +10,4 @@ /sbin/lilo.* -- gen_context(system_u:object_r:bootloader_exec_t,s0) /sbin/mkinitrd -- gen_context(system_u:object_r:bootloader_exec_t,s0) /sbin/ybin.* -- gen_context(system_u:object_r:bootloader_exec_t,s0) +/boot/grub/.* -- gen_context(system_u:object_r:boot_runtime_t,s0)
policy/modules/admin/bootloader.te +1 -1
@@ -161,7 +161,7 @@ allow bootloader_t self:capability ipc_lock; # new file system defaults to file_t, granting file_t access is still bad. - allow bootloader_t boot_runtime_t:file { r_file_perms unlink }; + allow bootloader_t boot_runtime_t:file { rw_file_perms unlink }; # mkinitrd mount initrd on bootloader temp dir files_mountpoint(bootloader_tmp_t)
policy/modules/admin/consoletype.te +6 -1
@@ -8,7 +8,12 @@ type consoletype_t; type consoletype_exec_t; -init_domain(consoletype_t,consoletype_exec_t) +#dont transition from initrc +#init_domain(consoletype_t,consoletype_exec_t) +domain_type(consoletype_t) +domain_entry_file(consoletype_t,consoletype_exec_t) +role system_r types consoletype_t; + mls_file_read_up(consoletype_t) mls_file_write_down(consoletype_t) role system_r types consoletype_t;
policy/modules/admin/firstboot.te +7 -6
@@ -20,9 +20,6 @@ type firstboot_etc_t; files_config_file(firstboot_etc_t) -type firstboot_rw_t; -files_type(firstboot_rw_t) - ######################################## # # Local policy
@@ -38,9 +35,8 @@ allow firstboot_t firstboot_etc_t:file { getattr read }; -allow firstboot_t firstboot_rw_t:dir create_dir_perms; -allow firstboot_t firstboot_rw_t:file create_file_perms; -files_etc_filetrans(firstboot_t,firstboot_rw_t,file) +files_manage_etc_runtime_files(firstboot_t) +files_etc_filetrans_etc_runtime(firstboot_t, { file dir }) # The big hammer unconfined_domain(firstboot_t)
@@ -124,6 +120,11 @@ usermanage_domtrans_useradd(firstboot_t) ') +optional_policy(` + usermanage_domtrans_admin_passwd(firstboot_t) +') + + ifdef(`TODO',` allow firstboot_t proc_t:file write;
policy/modules/admin/rpm.fc +2 -0
@@ -19,6 +19,8 @@ /usr/sbin/pup -- gen_context(system_u:object_r:rpm_exec_t,s0) /usr/sbin/rhn_check -- gen_context(system_u:object_r:rpm_exec_t,s0) /usr/sbin/up2date -- gen_context(system_u:object_r:rpm_exec_t,s0) +/usr/bin/apt-get -- gen_context(system_u:object_r:rpm_exec_t,s0) +/usr/bin/apt-shell -- gen_context(system_u:object_r:rpm_exec_t,s0) ') /var/lib/alternatives(/.*)? gen_context(system_u:object_r:rpm_var_lib_t,s0)
policy/modules/admin/rpm.if +7 -6
@@ -75,12 +75,13 @@ ') rpm_domtrans($1) - role $2 types rpm_t; - role $2 types rpm_script_t; - seutil_run_loadpolicy(rpm_script_t,$2,$3) - seutil_run_semanage(rpm_script_t,$2,$3) - seutil_run_setfiles(rpm_script_t,$2,$3) - seutil_run_restorecon(rpm_script_t,$2,$3) + #role $2 types rpm_t; + #role $2 types rpm_script_t; + role_transition $2 rpm_exec_t system_r; + seutil_run_loadpolicy(rpm_script_t,system_r,$3) + seutil_run_semanage(rpm_script_t,system_r,$3) + seutil_run_setfiles(rpm_script_t,system_r,$3) + seutil_run_restorecon(rpm_script_t,system_r,$3) allow rpm_t $3:chr_file rw_term_perms; ')
policy/modules/apps/java.fc +1 -1
@@ -1,7 +1,7 @@ # # /opt # -/opt/(.*/)?bin/java([^/]*)? -- gen_context(system_u:object_r:java_exec_t,s0) +/opt/(.*/)?java([^/]*)? -- gen_context(system_u:object_r:java_exec_t,s0) # # /usr
policy/modules/kernel/corecommands.if +1 -0
@@ -950,6 +950,7 @@ allow $1 exec_type:file manage_file_perms; allow $1 { bin_t sbin_t }:dir rw_dir_perms; + allow $1 { bin_t sbin_t }:lnk_file create_lnk_perms; ') ########################################
policy/modules/kernel/corenetwork.te.in +3 -1
@@ -67,6 +67,7 @@ network_port(clamd, tcp,3310,s0) network_port(clockspeed, udp,4041,s0) network_port(comsat, udp,512,s0) +network_port(cluster, tcp,40040,s0) network_port(cvs, tcp,2401,s0, udp,2401,s0) network_port(dcc, udp,6276,s0, udp,6277,s0) network_port(dbskkd, tcp,1178,s0)
@@ -121,12 +122,13 @@ network_port(radacct, udp,1646,s0, udp,1813,s0) network_port(radius, udp,1645,s0, udp,1812,s0) network_port(razor, tcp,2703,s0) +network_port(ricci, tcp,11111,s0, udp,11111,s0) +network_port(ricci_modcluster, tcp,16851,s0, udp,16851,s0) network_port(rlogind, tcp,513,s0) network_port(rndc, tcp,953,s0) network_port(router, udp,520,s0) network_port(rsh, tcp,514,s0) network_port(rsync, tcp,873,s0, udp,873,s0) -network_port(setroubleshoot, tcp,3267,s0) network_port(smbd, tcp,137-139,s0, tcp,445,s0) network_port(smtp, tcp,25,s0, tcp,465,s0, tcp,587,s0) network_port(snmp, udp,161,s0, udp,162,s0, tcp,199,s0)
policy/modules/kernel/files.fc +1 -0
@@ -32,6 +32,7 @@ /boot/lost\+found -d gen_context(system_u:object_r:lost_found_t,s15:c0.c255) /boot/lost\+found/.* <<none>> /boot/System\.map(-.*)? -- gen_context(system_u:object_r:system_map_t,s0) +/boot/grub/slapsh.xpm.gz -- gen_context(system_u:object_r:boot_t,s0) # # /emul
policy/modules/kernel/terminal.if +1 -1
@@ -886,7 +886,7 @@ type tty_device_t; ') - dontaudit $1 tty_device_t:chr_file { read write }; + dontaudit $1 tty_device_t:chr_file rw_file_perms; ') ########################################
policy/modules/services/amavis.te +1 -0
@@ -155,6 +155,7 @@ ifdef(`targeted_policy',` term_dontaudit_use_generic_ptys(amavis_t) + term_dontaudit_use_unallocated_ttys(amavis_t) ') optional_policy(`
policy/modules/services/apache.te +1 -1
@@ -141,7 +141,6 @@ allow httpd_t self:msg { send receive }; allow httpd_t self:unix_dgram_socket { create_socket_perms sendto }; allow httpd_t self:unix_stream_socket { create_stream_socket_perms connectto }; -allow httpd_t self:netlink_route_socket { bind create getattr nlmsg_read read write }; allow httpd_t self:tcp_socket create_stream_socket_perms; allow httpd_t self:udp_socket create_socket_perms;
@@ -713,4 +712,5 @@ ifdef(`targeted_policy',` term_dontaudit_use_generic_ptys(httpd_rotatelogs_t) + term_dontaudit_use_unallocated_ttys(httpd_rotatelogs_t) ')
policy/modules/services/bluetooth.te +3 -1
@@ -217,14 +217,16 @@ fs_rw_tmpfs_files(bluetooth_helper_t) term_dontaudit_use_generic_ptys(bluetooth_helper_t) + term_dontaudit_use_unallocated_ttys(bluetooth_helper_t) unconfined_stream_connect(bluetooth_helper_t) userdom_manage_generic_user_home_content_files(bluetooth_helper_t) + corenet_non_ipsec_sendrecv(bluetooth_helper_t) + optional_policy(` corenet_tcp_connect_xserver_port(bluetooth_helper_t) - xserver_stream_connect_xdm(bluetooth_helper_t) xserver_use_xdm_fds(bluetooth_helper_t) xserver_rw_xdm_pipes(bluetooth_helper_t)
policy/modules/services/ccs.fc +8 -0
@@ -0,0 +1,8 @@ +# ccs executable will have: +# label: system_u:object_r:ccs_exec_t +# MLS sensitivity: s0 +# MCS categories: <none> + +/sbin/ccsd -- gen_context(system_u:object_r:ccs_exec_t,s0) +/var/run/cluster(/.*)? gen_context(system_u:object_r:ccs_var_run_t,s0) +/etc/cluster(/.*)? gen_context(system_u:object_r:cluster_conf_t,s0)
policy/modules/services/ccs.if +65 -0
65 lines not on this page · raw message
policy/modules/services/ccs.te +87 -0
87 lines not on this page · raw message
policy/modules/services/clamav.te +1 -0
@@ -121,6 +121,7 @@ cron_rw_pipes(clamd_t) ifdef(`targeted_policy',` + term_dontaudit_use_unallocated_ttys(clamd_t) term_dontaudit_use_generic_ptys(clamd_t) ')
policy/modules/services/cron.if +9 -0
@@ -54,6 +54,11 @@ domain_entry_file($1_crontab_t,crontab_exec_t) role $3 types $1_crontab_t; + type $1_crontab_tmp_t; + files_tmp_file($1_crontab_tmp_t) + + + ############################## # # $1_crond_t local policy
@@ -193,6 +198,10 @@ # Allow crond to read those crontabs in cron spool. allow crond_t $1_cron_spool_t:file create_file_perms; + allow $1_crontab_t tmp_t:dir rw_dir_perms; + allow $1_crontab_t $1_crontab_tmp_t:file create_file_perms; + type_transition $1_crontab_t tmp_t:file $1_crontab_tmp_t; + # dac_override is to create the file in the directory under /tmp allow $1_crontab_t self:capability { fowner setuid setgid chown dac_override }; allow $1_crontab_t self:process signal_perms;
policy/modules/services/cron.te +4 -0
@@ -36,6 +36,9 @@ type crontab_exec_t; corecmd_executable_file(crontab_exec_t) +type crontab_tmp_t; +files_tmp_file(crontab_tmp_t) + type system_cron_spool_t, cron_spool_type; files_type(system_cron_spool_t)
@@ -175,6 +178,7 @@ allow crond_t crond_tmp_t:dir create_dir_perms; allow crond_t crond_tmp_t:file create_file_perms; files_tmp_filetrans(crond_t, crond_tmp_t, { file dir }) + files_pid_filetrans(system_crond_t,crond_var_run_t,file) ') tunable_policy(`fcron_crond', `
policy/modules/services/cyrus.te +1 -0
@@ -93,6 +93,7 @@ files_list_var_lib(cyrus_t) files_read_etc_files(cyrus_t) files_read_etc_runtime_files(cyrus_t) +files_read_usr_files(cyrus_t) init_use_fds(cyrus_t) init_use_script_ptys(cyrus_t)
policy/modules/services/dbus.if +1 -0
@@ -123,6 +123,7 @@ selinux_compute_relabel_context($1_dbusd_t) selinux_compute_user_contexts($1_dbusd_t) + corecmd_bin_domtrans($1_dbusd_t, $1_t) corecmd_list_bin($1_dbusd_t) corecmd_read_bin_symlinks($1_dbusd_t) corecmd_read_bin_files($1_dbusd_t)
policy/modules/services/dbus.te +0 -1
@@ -38,7 +38,6 @@ allow system_dbusd_t self:unix_stream_socket { connectto create_stream_socket_perms connectto }; allow system_dbusd_t self:unix_dgram_socket create_socket_perms; allow system_dbusd_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay }; -allow system_dbusd_t self:netlink_route_socket r_netlink_socket_perms; # Receive notifications of policy reloads and enforcing status changes. allow system_dbusd_t self:netlink_selinux_socket { create bind read };
policy/modules/services/dovecot.te +0 -2
@@ -46,8 +46,6 @@ allow dovecot_t self:tcp_socket create_stream_socket_perms; allow dovecot_t self:unix_dgram_socket create_socket_perms; allow dovecot_t self:unix_stream_socket { create_stream_socket_perms connectto }; -allow dovecot_t self:netlink_route_socket r_netlink_socket_perms; - domain_auto_trans(dovecot_t, dovecot_auth_exec_t, dovecot_auth_t) allow dovecot_t dovecot_auth_t:fd use; allow dovecot_auth_t dovecot_t:process sigchld;
policy/modules/services/ftp.te +0 -1
@@ -50,7 +50,6 @@ allow ftpd_t self:unix_stream_socket create_stream_socket_perms; allow ftpd_t self:tcp_socket create_stream_socket_perms; allow ftpd_t self:udp_socket create_socket_perms; -allow ftpd_t self:netlink_route_socket r_netlink_socket_perms; allow ftpd_t ftpd_etc_t:file r_file_perms;
policy/modules/services/hal.te +1 -1
@@ -28,7 +28,6 @@ allow hald_t self:fifo_file rw_file_perms; allow hald_t self:unix_stream_socket { create_stream_socket_perms connectto }; allow hald_t self:unix_dgram_socket create_socket_perms; -allow hald_t self:netlink_route_socket r_netlink_socket_perms; allow hald_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay }; allow hald_t self:netlink_kobject_uevent_socket create_socket_perms; allow hald_t self:tcp_socket create_stream_socket_perms;
@@ -78,6 +77,7 @@ dev_rw_sysfs(hald_t) domain_use_interactive_fds(hald_t) +domain_read_all_domains_state(hald_t) files_exec_etc_files(hald_t) files_read_etc_files(hald_t)
policy/modules/services/ldap.te +1 -1
@@ -72,7 +72,7 @@ allow slapd_t slapd_var_run_t:file create_file_perms; allow slapd_t slapd_var_run_t:dir rw_dir_perms; -files_pid_filetrans(slapd_t,slapd_var_run_t,file) +files_pid_filetrans(slapd_t,slapd_var_run_t,{ file sock_file }) kernel_read_system_state(slapd_t) kernel_read_kernel_sysctls(slapd_t)
policy/modules/services/networkmanager.te +2 -2
@@ -18,9 +18,9 @@ # Local policy # -allow NetworkManager_t self:capability { kill setgid setuid sys_nice dac_override net_admin net_raw net_bind_service ipc_lock}; +allow NetworkManager_t self:capability { kill setgid setuid sys_nice sys_ptrace dac_override net_admin net_raw net_bind_service ipc_lock}; dontaudit NetworkManager_t self:capability sys_tty_config; -allow NetworkManager_t self:process { setcap getsched signal_perms }; +allow NetworkManager_t self:process { ptrace setcap getsched signal_perms }; allow NetworkManager_t self:fifo_file rw_file_perms; allow NetworkManager_t self:unix_dgram_socket { sendto create_socket_perms }; allow NetworkManager_t self:unix_stream_socket create_stream_socket_perms;
policy/modules/services/ntp.te +0 -1
@@ -38,7 +38,6 @@ allow ntpd_t self:fifo_file { read write getattr }; allow ntpd_t self:unix_dgram_socket create_socket_perms; allow ntpd_t self:unix_stream_socket create_socket_perms; -allow ntpd_t self:netlink_route_socket r_netlink_socket_perms; allow ntpd_t self:tcp_socket create_stream_socket_perms; allow ntpd_t self:udp_socket create_socket_perms;
policy/modules/services/oddjob.fc +8 -0
@@ -0,0 +1,8 @@ +# oddjob executable will have: +# label: system_u:object_r:oddjob_exec_t +# MLS sensitivity: s0 +# MCS categories: <none> + +/usr/sbin/oddjobd -- gen_context(system_u:object_r:oddjob_exec_t,s0) +/var/run/oddjobd.pid gen_context(system_u:object_r:oddjob_var_run_t,s0) +/usr/lib/oddjobd gen_context(system_u:object_r:oddjob_var_lib_t,s0)
policy/modules/services/oddjob.if +76 -0
76 lines not on this page · raw message
policy/modules/services/oddjob_mkhomedir.fc +6 -0
@@ -0,0 +1,6 @@ +# oddjob_mkhomedir executable will have: +# label: system_u:object_r:oddjob_mkhomedir_exec_t +# MLS sensitivity: s0 +# MCS categories: <none> + +/usr/lib/oddjob/mkhomedir -- gen_context(system_u:object_r:oddjob_mkhomedir_exec_t,s0)
policy/modules/services/oddjob_mkhomedir.if +24 -0
@@ -0,0 +1,24 @@ +## <summary>policy for oddjob_mkhomedir</summary> + +######################################## +## <summary> +## Execute a domain transition to run oddjob_mkhomedir. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed to transition. +## </summary> +## </param> +# +interface(`oddjob_mkhomedir_domtrans',` + gen_require(` + type oddjob_mkhomedir_t, oddjob_mkhomedir_exec_t; + ') + + domain_auto_trans($1,oddjob_mkhomedir_exec_t,oddjob_mkhomedir_t) + + allow $1 oddjob_mkhomedir_t:fd use; + allow oddjob_mkhomedir_t $1:fd use; + allow oddjob_mkhomedir_t $1:fifo_file rw_file_perms; + allow oddjob_mkhomedir_t $1:process sigchld; +')
policy/modules/services/oddjob_mkhomedir.te +29 -0
@@ -0,0 +1,29 @@ +policy_module(oddjob_mkhomedir,1.0.0) + +######################################## +# +# Declarations +# + +type oddjob_mkhomedir_t; +type oddjob_mkhomedir_exec_t; +domain_type(oddjob_mkhomedir_t) +init_daemon_domain(oddjob_mkhomedir_t, oddjob_mkhomedir_exec_t) + +######################################## +# +# oddjob_mkhomedir local policy +# + +# Some common macros (you might be able to remove some) +files_read_etc_files(oddjob_mkhomedir_t) +libs_use_ld_so(oddjob_mkhomedir_t) +libs_use_shared_libs(oddjob_mkhomedir_t) +miscfiles_read_localization(oddjob_mkhomedir_t) +## internal communication is often done using fifo and unix sockets. +allow oddjob_mkhomedir_t self:fifo_file { read write }; +allow oddjob_mkhomedir_t self:unix_stream_socket create_stream_socket_perms; + +oddjob_system_entry(oddjob_mkhomedir_t, oddjob_mkhomedir_exec_t) +domain_auto_trans(unconfined_t,oddjob_mkhomedir_exec_t,oddjob_mkhomedir_t) +
policy/modules/services/oddjob.te +73 -0
73 lines not on this page · raw message
policy/modules/services/pegasus.if +31 -0
@@ -1 +1,32 @@ ## <summary>The Open Group Pegasus CIM/WBEM Server.</summary> + +######################################## +## <summary> +## Execute a domain transition to run pegasus. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed to transition. +## </summary> +## </param> +# +interface(`pegasus_domtrans',` + gen_require(` + type pegasus_t, pegasus_exec_t; + ') + + ifdef(`targeted_policy',` + if(pegasus_disable_trans) { + can_exec($1,pegasus_exec_t) + } else { + domain_auto_trans($1,pegasus_exec_t,pegasus_t) + } + ', ` + domain_auto_trans($1,pegasus_exec_t,pegasus_t) + ') + + allow $1 pegasus_t:fd use; + allow pegasus_t $1:fd use; + allow pegasus_t $1:fifo_file rw_file_perms; + allow pegasus_t $1:process sigchld; +')
policy/modules/services/pegasus.te +2 -3
@@ -100,13 +100,12 @@ auth_use_nsswitch(pegasus_t) auth_domtrans_chk_passwd(pegasus_t) +auth_read_shadow(pegasus_t) domain_use_interactive_fds(pegasus_t) domain_read_all_domains_state(pegasus_t) -files_read_etc_files(pegasus_t) -files_list_var_lib(pegasus_t) -files_read_var_lib_files(pegasus_t) +files_read_all_files(pegasus_t) files_read_var_lib_symlinks(pegasus_t) hostname_exec(pegasus_t)
policy/modules/services/postfix.te +6 -0
@@ -171,6 +171,11 @@ mta_rw_aliases(postfix_master_t) mta_read_sendmail_bin(postfix_master_t) +ifdef(`targeted_policy',` + term_dontaudit_use_unallocated_ttys(postfix_master_t) + term_dontaudit_use_generic_ptys(postfix_master_t) +') + optional_policy(` cyrus_stream_connect(postfix_master_t) ')
@@ -361,6 +366,7 @@ sysnet_read_config(postfix_map_t) ifdef(`targeted_policy',` + term_dontaudit_use_unallocated_ttys(postfix_map_t) term_dontaudit_use_generic_ptys(postfix_map_t) ')
policy/modules/services/ricci.fc +20 -0
@@ -0,0 +1,20 @@ +# ricci executable will have: +# label: system_u:object_r:ricci_exec_t +# MLS sensitivity: s0 +# MCS categories: <none> + +/usr/sbin/ricci -- gen_context(system_u:object_r:ricci_exec_t,s0) +/var/lib/ricci(/.*)? gen_context(system_u:object_r:ricci_var_lib_t,s0) + +/usr/sbin/ricci-modclusterd -- gen_context(system_u:object_r:ricci_modclusterd_exec_t,s0) +/var/run/ricci-modclusterd.pid -- gen_context(system_u:object_r:ricci_modcluster_var_run_t,s0) +/var/log/clumond.log -- gen_context(system_u:object_r:ricci_modcluster_var_log_t,s0) + +/usr/sbin/ricci-modlog -- gen_context(system_u:object_r:ricci_modlog_exec_t,s0) +/usr/sbin/ricci-modlog_ro -- gen_context(system_u:object_r:ricci_modlog_ro_exec_t,s0) + +/usr/sbin/ricci-modrpm -- gen_context(system_u:object_r:ricci_modrpm_exec_t,s0) +/usr/sbin/ricci-modcluster -- gen_context(system_u:object_r:ricci_modcluster_exec_t,s0) +/usr/sbin/ricci-modservice -- gen_context(system_u:object_r:ricci_modservice_exec_t,s0) +/usr/sbin/ricci-modstorage -- gen_context(system_u:object_r:ricci_modstorage_exec_t,s0) +
policy/modules/services/ricci.if +184 -0
184 lines not on this page · raw message
policy/modules/services/ricci.te +386 -0
386 lines not on this page · raw message
policy/modules/services/stunnel.te +2 -1
@@ -38,6 +38,7 @@ allow stunnel_t self:fifo_file rw_file_perms; allow stunnel_t self:tcp_socket create_stream_socket_perms; allow stunnel_t self:udp_socket create_socket_perms; +allow stunnel_t self:netlink_route_socket r_netlink_socket_perms; allow stunnel_t stunnel_etc_t:dir { getattr read search }; allow stunnel_t stunnel_etc_t:file { read getattr };
@@ -63,7 +64,7 @@ corenet_tcp_sendrecv_all_ports(stunnel_t) corenet_udp_sendrecv_all_ports(stunnel_t) corenet_tcp_bind_all_nodes(stunnel_t) -#corenet_tcp_bind_stunnel_port(stunnel_t) +corenet_tcp_connect_all_ports(stunnel_t) fs_getattr_all_fs(stunnel_t)
policy/modules/services/xserver.if +22 -0
@@ -1133,3 +1133,25 @@ allow $1 xdm_xserver_tmp_t:sock_file write; allow $1 xdm_xserver_t:unix_stream_socket connectto; ') + + +######################################## +## <summary> +## Create a named socket in a ice +## temporary directory. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +# +interface(`xserver_create_ice_tmp_sockets',` + gen_require(` + type ice_tmp_t; + ') + + files_search_tmp($1) + allow $1 ice_tmp_t:dir ra_dir_perms; + allow $1 ice_tmp_t:sock_file create_file_perms; +')
policy/modules/system/hostname.te +4 -1
@@ -8,7 +8,10 @@ type hostname_t; type hostname_exec_t; -init_system_domain(hostname_t,hostname_exec_t) + +#dont transition from initrc +domain_type(hostname_t) +domain_entry_file(hostname_t,hostname_exec_t) role system_r types hostname_t; ########################################
policy/modules/system/init.te +2 -1
@@ -361,7 +361,8 @@ logging_append_all_logs(initrc_t) logging_read_audit_config(initrc_t) -miscfiles_read_localization(initrc_t) +miscfiles_rw_localization(initrc_t) + # slapd needs to read cert files from its initscript miscfiles_read_certs(initrc_t)
policy/modules/system/selinuxutil.fc +1 -0
@@ -36,6 +36,7 @@ /usr/sbin/restorecond -- gen_context(system_u:object_r:restorecond_exec_t,s0) /usr/sbin/run_init -- gen_context(system_u:object_r:run_init_exec_t,s0) /usr/sbin/setfiles.* -- gen_context(system_u:object_r:setfiles_exec_t,s0) +/sbin/setfiles.* -- gen_context(system_u:object_r:setfiles_exec_t,s0) /usr/sbin/setsebool -- gen_context(system_u:object_r:semanage_exec_t,s0) /usr/sbin/semanage -- gen_context(system_u:object_r:semanage_exec_t,s0) /usr/sbin/semodule -- gen_context(system_u:object_r:semanage_exec_t,s0)
policy/modules/system/selinuxutil.te +7 -0
@@ -450,6 +450,7 @@ selinux_compute_user_contexts(restorecond_t) term_dontaudit_use_generic_ptys(restorecond_t) +term_dontaudit_use_unallocated_ttys(restorecond_t) auth_relabel_all_files_except_shadow(restorecond_t ) auth_read_all_files_except_shadow(restorecond_t)
@@ -621,6 +622,12 @@ # Handle pp files created in homedir and /tmp files_read_generic_tmp_files(semanage_t) userdom_read_generic_user_home_content_files(semanage_t) +',` + ifdef(`enable_mls',` + userdom_read_user_tmp_files(secadm, semanage_t) + ',` + userdom_read_user_tmp_files(sysadm, semanage_t) + ') ') ########################################
policy/modules/system/userdomain.if +165 -81
443 lines not on this page · raw message
policy/modules/system/userdomain.te +22 -26
94 lines not on this page · raw message
Quoted 6 lines · Daniel J Walsh
Quoted 5 lines · Christopher J. PeBenito
Quoted 1 line · Daniel J Walsh
Fixing some labels to march what actually ends up on disk see
/boot/grubThese say
/boot/grup; I assume this is a typo. Also they should be in the files module.
on further review, why does /boot/grub/* need to be boot_runtime_t? GRUB shouldn't be writing these files.
Quoted 10 lines
Quoted 7 lines
Quoted 2 lines
Please change /opt java line to match what IBM ships
I'm concerned this is too broad. Can we get additional, more specific regexes?
I went looking for this, and I believe it was placed in a IBM directory, but can not find it right now.
Also not sure where BEA places there java.
I'm still going to have to drop this. The more complex regexs we have, the more likely there will be fc sorting problems.
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Lots of domains need
term_dontaudit_use_unallocated_ttysfor startup from a tty.Can you clarify this? I don't know what you mean by "startup from a tty".
Quoted 8 lines
Log in to console terminals
ctrl-alt-f1
restart daemons, generated lots of avc messages when daemons try to talk to
tty_device_t.you will see this same pattern on almost all daemons.
Ok, so this is a direct_run_init+targeted issue. Now it makes sense to put it back into init_daemon_domain(). I'll take care of that.
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
NetworkManager wants to ptrace itself
I can't reproduce this on my notebook. Can you look more into this? It seems highly irregular.
I installed gdb to reproduce this, and I got the ptrace denial but didn't get a sys_ptrace denial.
Quoted 3 lines
Quoted 2 lines
udev transition to dhcpc
It does when networks are plugged in, I believe.
Thats odd, because that sounds like networkmanager's job.
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 2 lines · Christopher J. PeBenito
on further review, why does
/boot/grub/*need to beboot_runtime_t? GRUB shouldn't be writing these files.
boot_runtime_t is not needed any more, and has not been needed since Red Hat stopped creating sym-links such as /boot/kernel.h and /boot/System.map. It's been quite a while since that has been needed, I don't think that there has never been a Fedora release which supported SE Linux that had such symlinks.
On a couple of occasions I have submitted patches to remove that. But it seems almost impossible to remove things from the policy. Any time I submit a patch to remove something someone else immediately submits a patch to put it back in.
Signature · 9 lines
http://etbe.blogspot.com/ My Blog http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/sponsorship.html Sponsoring Free Software development -- 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 6 lines · Christopher J. PeBenito
Quoted 4 lines · Daniel J Walsh
Quoted 2 lines · Christopher J. PeBenito
On Thu, 2006-08-31 at 15:16 -0400, Daniel J Walsh wrote:
Quoted 10 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Fixing some labels to march what actually ends up on disk see
/boot/grubThese say
/boot/grup; I assume this is a typo. Also they should be in the files module.on further review, why does
/boot/grub/*need to beboot_runtime_t? GRUB shouldn't be writing these files.
I think the problem is that grubby is also labeled bootloader_exec_t, this should become a different context say bootloader_helper_exec_t and then we can tighten bootloader_t.
Quoted 28 lines
Quoted 11 lines
Quoted 8 lines
Quoted 3 lines
Please change /opt java line to match what IBM ships
I'm concerned this is too broad. Can we get additional, more specific regexes?
I went looking for this, and I believe it was placed in a IBM directory, but can not find it right now. Also not sure where BEA places there java.
I'm still going to have to drop this. The more complex regexs we have, the more likely there will be fc sorting problems.
Quoted 12 lines
Quoted 8 lines
Quoted 3 lines
Lots of domains need
term_dontaudit_use_unallocated_ttysfor startup from a tty.Can you clarify this? I don't know what you mean by "startup from a tty".
Log in to console terminals
ctrl-alt-f1
Quoted 9 lines
Quoted 4 lines
restart daemons, generated lots of avc messages when daemons try to talk to
tty_device_t.you will see this same pattern on almost all daemons.
Ok, so this is a direct_run_init+targeted issue. Now it makes sense to put it back into
init_daemon_domain(). I'll take care of that.
These lines are all over policy.
ifdef(targeted_policy',
term_dontaudit_use_generic_ptys(amavis_t)
term_dontaudit_use_unallocated_ttys(amavis_t)
')
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
NetworkManager wants to ptrace itself
I can't reproduce this on my notebook. Can you look more into this? It seems highly irregular.
Quoted 7 lines
I installed gdb to reproduce this, and I got the ptrace denial but didn't get a
sys_ptracedenial.
I did once, but I will remove it until I get it again.
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
udev transition to dhcpc
It does when networks are plugged in, I believe.
Thats odd, because that sounds like networkmanager's job.
I was thinking this came from netplugd but that seems to be labeled hotplug_exec_t.
--
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.
Hello Christopher,
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Lots of domains need
term_dontaudit_use_unallocated_ttysfor startup from a tty.Can you clarify this? I don't know what you mean by "startup from a tty".
Ok, so this is a direct_run_init+targeted issue. Now it makes sense to put it back into
init_daemon_domain(). I'll take care of that.
I see that a lot on strict policy, too. Strict needs some love.
denied { read write } for pid=10820 comm="logcheck" name="tty" dev=tmpfs
ino=3269 scontext=system_u:system_r:logrotate_t tcontext=system_u:object_r:tty_device_t tclass=chr_file
denied { read write } for pid=18403 comm="sshd" name="tty" dev=tmpfs ino=3269 scontext=system_u:system_r:sshd_t tcontext=system_u:object_r:tty_device_t tclass=chr_file
denied { read write } for pid=18403 comm="bash" name="tty" dev=tmpfs ino=3269 scontext=erich:user_r:user_t tcontext=system_u:object_r:tty_device_t tclass=chr_file
denied { read write } for pid=18407 comm="sh" name="tty" dev=tmpfs ino=3269 scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:tty_device_t tclass=chr_file
best regards,
Erich Schubert
Signature · 9 lines
erich@(vitavonni.de|debian.org) -- GPG Key ID: 4B3A135C (o_
Which is worse: ignorance or apathy? Who knows? Who cares? //\
Ein Freund ist ein Geschenk, das man sich selbst macht. V_/_
--
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 8 lines · Erich Schubert
Hello Christopher,
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Lots of domains need
term_dontaudit_use_unallocated_ttysfor startup from a tty.Can you clarify this? I don't know what you mean by "startup from a tty".
Ok, so this is a direct_run_init+targeted issue. Now it makes sense to put it back into
init_daemon_domain(). I'll take care of that.
Quoted 6 lines
I see that a lot on strict policy, too. Strict needs some love.
denied { read write } for pid=10820 comm="logcheck" name="tty" dev=tmpfs
ino=3269 scontext=system_u:system_r:logrotate_t tcontext=system_u:object_r:tty_device_t tclass=chr_file
Since the device node is "tty", I assume it refers to /dev/tty, in which case it is mislabeled.
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.