Subject: Re: [X2Go-Dev] Bug#438: x2goserver and rhel6.4 / selinux Problem

From: Frank Knoben <[email-masked]>
Date: Wed, 05 Mar 2014 07:59:06 +0100

On 03/04/2014 05:36 PM, Orion Poplawski wrote:
> On 03/04/2014 04:02 AM, Frank Knoben wrote:
>> When I put the lines in the x2gostartagent script
>>
>> after the
>>
>> XAUTHORITY=${XAUTHORITY:-"$HOME/.Xauthority"}
>>
>> line, the permissions will be fixed on login and not on logout.
>> Unfortunately, restorcon sets the permissions to 
>> system_u:object_r:default_t:s0
>> and this does not work on my system.
>
> That's not right.  What is your home directory?  What does 
> matchpathcon $HOME return?
>
>

matchpathcon  $HOME
returns system_u:object_r:default_t:s0

I switched the default home location from /home/user to /data/user and 
changed the
permissions of /data/user with
chcon -R unconfined_u:object_r:user_home_dir_t:s0 /data/user