| Summary: | SELinux is preventing /usr/sbin/lxdm-binary from 'read' accesses on the file .dmrc. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Aníbal Deboni Neto <anibaldeboni> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dominick.grift, dwalsh, mgrepl, quickhelp |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:89e6888a85880d4851d2a1b2b1293d2625ff63694e4986399b4e6f68e8a08232 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-29 09:04:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
You have a labelling issue. Please make sure that you have policycoreutils-restorecond installed. Relogin to your session after it is installed and restore the context of your home directories manually: restorecon -R -v ~. A file called .dmrc at inode 1267 on device sda6 has no file context. (Have you migrated to Fedora from a distribution that does not support SELinux or are you sharing the partition mounted on your home directory with distributions that do not suppport SELinux?). run "find / -inum 1267" to find the file .dmrc Did you add a disk? You need to run # restorecon -R -v /home |
SELinux is preventing /usr/sbin/lxdm-binary from 'read' accesses on the file .dmrc. ***** Plugin file (36.8 confidence) suggests ******************************* If you think this is caused by a badly mislabeled machine. Then you need to fully relabel. Do touch /.autorelabel; reboot ***** Plugin file (36.8 confidence) suggests ******************************* If you think this is caused by a badly mislabeled machine. Then you need to fully relabel. Do touch /.autorelabel; reboot ***** Plugin catchall_labels (23.2 confidence) suggests ******************** If you want to allow lxdm-binary to have read access on the .dmrc file Then you need to change the label on .dmrc Do # semanage fcontext -a -t FILE_TYPE '.dmrc' where FILE_TYPE is one of the following: selinux_config_t, bin_t, cert_t, lib_t, usr_t, var_t, wtmp_t, xserver_exec_t, default_context_t, pam_console_exec_t, ld_so_cache_t, hwdata_t, locale_t, sssd_public_t, var_auth_t, etc_t, fonts_t, dbusd_exec_t, user_fonts_t, proc_t, user_tmpfs_t, sysfs_t, xdm_t, loadkeys_exec_t, krb5_keytab_t, xdm_dbusd_t, xdm_spool_t, fonts_cache_t, system_cronjob_var_lib_t, ssh_agent_exec_t, plymouthd_var_log_t, policykit_var_lib_t, crack_db_t, user_tmp_t, ssh_home_t, xserver_tmpfs_t, krb5_conf_t, iceauth_home_t, plymouth_exec_t, xauth_exec_t, xauth_home_t, auth_cache_t, alsa_etc_rw_t, xdm_tmpfs_t, sysctl_dev_t, sysctl_net_t, rpm_exec_t, security_t, pulseaudio_exec_t, mount_exec_t, gconf_etc_t, shell_exec_t, consolekit_log_t, pam_exec_t, abrt_var_run_t, krb5_home_t, user_cron_spool_t, proc_afs_t, oddjob_mkhomedir_exec_t, xserver_log_t, dbusd_etc_t, user_home_t, var_lib_t, updpwd_exec_t, xdm_tmp_t, userdomain, xserver_t, fusermount_exec_t, configfile, domain, sysctl_crypto_t, rpm_var_cache_t, faillog_t, lastlog_t, proc_net_t, var_log_t, chkpwd_exec_t, policykit_reload_t, xdm_etc_t, xdm_log_t, gnome_home_type, hostname_exec_t, abrt_t, samba_var_t, initrc_var_run_t, lib_t, gkeyringd_exec_t, pam_var_run_t, rpm_var_lib_t, xdm_var_lib_t, xdm_var_run_t, net_conf_t, init_exec_t, afs_cache_t, abrt_helper_exec_t, etc_runtime_t, anon_inodefs_t, gconf_home_t, openct_var_run_t, sysctl_kernel_t, config_usr_t, ld_so_t, pcscd_var_run_t, udev_var_run_t, alsa_exec_t, xkb_var_lib_t, shutdown_exec_t, consoletype_exec_t, xdm_rw_etc_t, accountsd_var_lib_t, textrel_shlib_t, xdm_exec_t, xdm_home_t, xdm_lock_t, pam_var_console_t, rpm_script_tmp_t, system_dbusd_var_lib_t, policykit_auth_exec_t, cgroup_t, krb5_host_rcache_t, cert_t, init_t, security_t, systemd_systemctl_exec_t, net_conf_t, file_context_t, shell_exec_t, xsession_exec_t. Then execute: restorecon -v '.dmrc' ***** Plugin catchall (5.04 confidence) suggests *************************** If you believe that lxdm-binary should be allowed read access on the .dmrc file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep lxdm-binary /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:xdm_t:s0-s0:c0.c1023 Target Context system_u:object_r:file_t:s0 Target Objects .dmrc [ file ] Source lxdm-binary Source Path /usr/sbin/lxdm-binary Port <Unknown> Host (removed) Source RPM Packages lxdm-0.3.0-4.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.16-24.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux z.io.n 2.6.38.6-26.rc1.fc15.i686 #1 SMP Mon May 9 20:43:14 UTC 2011 i686 i686 Alert Count 4 First Seen Sat 28 May 2011 09:01:34 PM BRT Last Seen Sat 28 May 2011 09:12:41 PM BRT Local ID f2d978fd-3bcb-4782-81b6-5376d3867e7f Raw Audit Messages type=AVC msg=audit(1306627961.223:90): avc: denied { read } for pid=1398 comm="lxdm-binary" name=".dmrc" dev=sda6 ino=1267 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file type=SYSCALL msg=audit(1306627961.223:90): arch=i386 syscall=open success=no exit=EACCES a0=8b35140 a1=8000 a2=0 a3=8b35140 items=0 ppid=1 pid=1398 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=500 fsgid=0 tty=(none) ses=2 comm=lxdm-binary exe=/usr/sbin/lxdm-binary subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null) Hash: lxdm-binary,xdm_t,file_t,file,read audit2allow #============= xdm_t ============== allow xdm_t file_t:file read; audit2allow -R #============= xdm_t ============== allow xdm_t file_t:file read;