FS#47052 - [pam] [sudo] policy plugin failed session initialization
Attached to Project:
Arch Linux
Opened by Justin Dray (justin8) - Thursday, 12 November 2015, 21:14 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 16 November 2015, 22:43 GMT
Opened by Justin Dray (justin8) - Thursday, 12 November 2015, 21:14 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 16 November 2015, 22:43 GMT
|
Details
Description:
The sudo package inside of docker containers has the below error when using 1.8.15: sudo: policy plugin failed session initialization Downgrading to 1.8.14 makes it work as before. Additional info: * package version(s) 1.8.15 * config and/or log files etc. Steps to reproduce: docker run --rm --entrypoint=/bin/bash justin8/makepkg > su build-user - > sudo -Ps sudo: policy plugin failed session initialization I am using 1.8.15 on my laptop and it is not causing issues there. The sudoers file contains the following 2 lines: root ALL=(ALL) ALL build-user ALL=(ALL) NOPASSWD: ALL and the user created with the below: useradd -d /build build-user |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Monday, 16 November 2015, 22:43 GMT
Reason for closing: Fixed
Additional comments about closing: pam 1.2.1-3
Monday, 16 November 2015, 22:43 GMT
Reason for closing: Fixed
Additional comments about closing: pam 1.2.1-3
http://pastebin.com/fXG9aeN9
link to issue posted on arch forum here:-
https://bbs.archlinux.org/viewtopic.php?id=204993
rolling back to sudo-1.8.14.p3-2 fixes the issue
The issue is that pam_limits.so fails to apply the rules found in /etc/security/limits.conf due to insufficient privileges (the "* - nice 0" line in particular).
@tpowa: I'd be very much in favor of dropping all the additions we make to limits.conf; if you think that's too much, we should at least drop the rules that apply to all users (and only keep the @audio ones).
sudo 1.8.15 should once again work in Docker containers. (pam 1.2.1-3 will stay in [testing] for a few days till it gets the required signoffs.)
[1] https://lists.archlinux.org/pipermail/arch-commits/2015-November/299983.html