Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default rlimit-nproc=3 causes problems with non-uid remapped containers #97

Closed
lathiat opened this issue Feb 5, 2017 · 0 comments
Closed
Labels
Milestone

Comments

@lathiat
Copy link
Contributor

lathiat commented Feb 5, 2017

By default, avahi-daemon sets the rlimit-nproc to 3.

The reasoning behind this is supposed to be security, to prevent avahi from launching processes in case of an exploit - though that is not really true since by default only 2 processes are consumed.

A problem arises when the same UID is user multiple times on the same system, this happens in particular when containers are used that do not remap UIDs into another range. In that case, a copy of avahi running in 2 containers causes the total process count to exceed 3 and Avahi cannot start.

References:
https://bugs.launchpad.net/maas/+bug/1661869
https://lists.linuxcontainers.org/pipermail/lxc-users/2016-January/010791.html
lxc/lxc#25

@lathiat lathiat closed this as completed in 537371c Feb 5, 2017
@lathiat lathiat added this to the v0.6.33 milestone May 20, 2017
@lathiat lathiat added the bug label May 20, 2017
xaiki added a commit to endlessm/eos-data-distribution that referenced this issue Jul 12, 2017
without it we hit  lxc/lxc#25 and most particularly avahi/avahi#97

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant