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

config parsing - duplicate settings lxc.id_map #81

Open
felix-engelmann opened this issue Jun 6, 2015 · 0 comments
Open

config parsing - duplicate settings lxc.id_map #81

felix-engelmann opened this issue Jun 6, 2015 · 0 comments

Comments

@felix-engelmann
Copy link

When the edit page fetches the container configuration with lwp.get_container_settings ConfigParser can not handle multiple lxc.id_map entries and keeps only the first. This breaks unprivileged containers.

Probably it might be fixed with the same trick as issue #73 with adding it to lwp/__init__.py

re.match('lxc.cgroup.devices.deny|lxc.cgroup.devices.allow|lxc.mount.entry|lxc.cap.drop|lxc.id_map', read[i]):

As this might be a quick fix, in the long run, an alternative for ConfigParser might be useful or at least a way to preserve any other config file parts which are not configurable in the web form. Also having comments would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants