Backups, homedirs, and selinux

I recently upgraded Fedora Branched (aka. soon-to-be Fedora 13), and I did a clean install to redo some partitioning. After that I naturally had to roll in my homedir from the backup.

All went smooth, however selinux started giving me this warning on login:

SELinux is preventing /usr/libexec/gdm-session-worker "write" access on .xsession-errors.

Looking into it I found out that my homedir had the wrong selinux type – most likely because I restored the entire homedir as a subdirectory under a temporary user directory and then moved it to /home.

Anyway the solution was to run

chcon -t user_home_dir_t /home/maxx

and the warning went away.

Leave a Reply

*