Bug 1728777
| Summary: | pam_loginuid prevents login in unprivileged containers | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Dzmitry Kazei <rh> |
| Component: | pam | Assignee: | Tomas Mraz <tmraz> |
| Status: | CLOSED ERRATA | QA Contact: | Dalibor Pospíšil <dapospis> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.6 | CC: | dapospis, tmraz |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | pam-1.1.8-23.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-03-31 19:10:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Dzmitry Kazei
2019-07-10 16:46:58 UTC
Dzmitry, can you share with us the steps you've done to run sshd in a container? Hello, I installed required files with "yum -y --installroot=/var/lib/lxc/test/rootfs install openssh-server openssh-clients", the package manager was run with custom python script wrapper in new namespace to set correct ownership for container fs (the script will not affect actual sshd running - that's just system preparation). Then I configured LXC (installed from EPEL repo): lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.name = eth0 lxc.include = /usr/share/lxc/config/centos.userns.conf lxc.arch = x86_64 lxc.start.auto = 1 lxc.cgroup.cpu.shares = 512 lxc.cgroup.memory.limit_in_bytes = 256M lxc.cgroup.memory.memsw.limit_in_bytes = 320M lxc.haltsignal = SIGTERM lxc.mount.auto = proc:mixed sys:ro cgroup:mixed lxc.pts = 64 lxc.id_map = u 0 100000 65536 lxc.id_map = g 0 100000 65536 lxc.network.ipv4 = IP_HERE lxc.network.ipv4.gateway = IP_HERE lxc.rootfs = /var/lib/lxc/test-test/rootfs lxc.utsname = HOSTNAME then started it with (tried with different -d / -D options later for verbose debug, etc): lxc-start -dn test -- /usr/sbin/sshd -D Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1005 |