SSH issue : ssh_selinux_copy_context: setcon failed with Invalid argument

Miroslav Grepl mgrepl at redhat.com
Tue Mar 19 13:10:46 UTC 2013


On 03/19/2013 09:57 AM, Dominick Grift wrote:
> On Tue, 2013-03-19 at 07:19 +0000, Anamitra Dutta Majumdar (anmajumd)
> wrote:
>> When trying to perform an sftp operation we encounter a failure even in
>> permissive mode. The syslogs during the failure are as follows
>> Is this a known issue?
>>
>> Thanks,
>> Anamitra
>>
> This seems to be a default_context/pam issue.
>
> Pam and SSH are not able to determine the login context for your user it
> seems.
>
> Did you create a /etc/selinux/targeted/context/users/specialuser_u file
> with the appropriate default contexts?
Yes, how does this file look?

Also what does

# rpm -q selinux-policy
>
> On a slightly unrelated note:
>
> It seems that the chroot/sftp functionality is broken.
>
> One no longer logs in as chroot_user_t. Either this has changed or its
> broken.
>
> If it has changed then why is there still policy for chroot_user_t?
>
>>
>>
>>
>> --
>> selinux mailing list
>> selinux at lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/selinux
>
> --
> selinux mailing list
> selinux at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/selinux



More information about the selinux mailing list