[Bug 1444968] [NEW] Postfix init.d scripts malfunction in an unprivilleged Docker container
Ernestas
ernetas at gmail.com
Thu Apr 16 11:49:54 UTC 2015
Public bug reported:
It would be beneficial to change 52 line in /etc/init.d/postfix from:
dir=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* -> //; s/\/[^\/]*$//')
to:
dir=$(cat /proc/$pid/task/$pid/cmdline 2>/dev/null)
First, it's obviously shorter. Second, it would work in Docker. It does
require additional kernel capabilities for looking into /proc/$pid/exe.
By default, Docker (and I presume that the same situation is with LXC
containers as well) does not give permission to /proc/$pid/exe, but does
provide access to contents of cmdline.
** Affects: postfix (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to postfix in Ubuntu.
https://bugs.launchpad.net/bugs/1444968
Title:
Postfix init.d scripts malfunction in an unprivilleged Docker
container
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1444968/+subscriptions
More information about the Ubuntu-server-bugs
mailing list