SELinux concerning /home symlink?

Craig White craigwhite at azapple.com
Thu Jul 24 22:00:05 UTC 2008


On Thu, 2008-07-24 at 21:41 +0000, Mike wrote:
> Mike <mike.cloaked <at> gmail.com> writes:
> 
> > Is the problem caused by the fact that the home area is symlinked from
> > /home to /opt/Local/home ?
> 
> It turned out that I have managed to fix the issue by changing the contexts
> of the files in /opt/Local/home/mike/.ssh to type user_home_t - and now
> the ssh problem has gone away.
> 
> I was told by a helpful poster in Fedora list that the fact that my home
> areas are on /opt would have resulted in inappropriate contexts for 
> /opt/Local/home since this would have been different if the partition had
> been /home and not under /opt - this was indeed the case and changing
> to user_home_t fixed this.
> 
> I therefore suspect that I should change all the contexts to the same type
> in /opt/Local/home
> 
> Anyway problem solved for the moment... this kind of information may well
> be useful to others who have atypical home areas for ease of doing upgrades.
----
I would suggest that you would be far better off mounting the partition
you now called /opt as /home and then move stuff around...

i.e.

init 1
umount /opt
# then edit /etc/fstab so whatever partition mounts at /opt mounts
at /home
mount /home
cd /home
mv Local/home/* .
# then mv everything that belongs in /opt to /opt
# then init 3/5

Craig




More information about the fedora-selinux-list mailing list