[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#454076: sshd executed in chroot-environment refuses connections if SELinux is disabled by boot option selinux=0



reassign 454076 libselinux
thanks

On Sun, Dec 02, 2007 at 10:31:44PM +0100, Roland Eggner wrote:
> sshd executed in chroot-environment refuses connections if SELinux is
> disabled by boot option selinux=0, whereas with sshd executed in
> "regular" environment same ssh-login works flawless.
[...]
> Dec  2 22:09:08 roland sshd[15881]: fatal: ssh_selinux_getctxbyname: ssh_selinux_getctxbyname: security_getenforce() failed

Is /selinux mounted in your chroot? This appears to be a requirement
imposed by libselinux.

(I would be inclined to bind-mount it from /.)

Cheers,

-- 
Colin Watson                                       [cjwatson@debian.org]




Reply to: