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

expand nspawn unit file validation logic to allow all currently supported fields #49712

Closed
wants to merge 1 commit into from

Conversation

plchldr
Copy link
Contributor

@plchldr plchldr commented Nov 3, 2018

Motivation for this change

I tried to set systemd.nspawn.ubuntu.execConfig.LimitNOFILE, but as it turns out the nspawn module does a whole lot of validation (which is imho unnecessary beyond a simple sanity check) and rejects that property, even though it's supported:
https://www.freedesktop.org/software/systemd/man/systemd.nspawn.html

Things done

I've added all (?) missing fields to the list of allowed ones. But nspawn seems to be part of a bigger closure which a lot of packages depend on, so I can't really test this. It's just a few additions to a list though .. what could go wrong?

Could this change be applied to the stable branch, too? As it is now nspawn is somewhat limited. Or is there some easy hack possible to circumvent the validation?

cc @Mic92 because you've been active around here

@c0bw3b
Copy link
Contributor

c0bw3b commented Dec 8, 2018

Master -> 53218d4
Release-18.09 -> e9a2c53

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

Successfully merging this pull request may close these issues.

None yet

3 participants