]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: Fix calculation of capabilities for configuration file (#7087)
authormyrkr <torsten.hilbrich@gmx.net>
Tue, 24 Oct 2017 07:56:40 +0000 (09:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 24 Oct 2017 07:56:40 +0000 (09:56 +0200)
commit1898e5f9a37d1a50f8c0bd1147abe11c3d38a16b
tree2a9716d1f96b5846340e83dfdd6331c863c7af9d
parentfc5ffacdabbcbbb18f2f249512d8c5a30ed6bc66
nspawn: Fix calculation of capabilities for configuration file (#7087)

The current code shifting an integer 1 failed for capabilities like
CAP_MAC_ADMIN (numerical value 33). This caused issues when specifying
them in the nspawn configuration file. Using an uint64_t 1 instead.

The similar code for processing the --capability command line option
was already correctly working.
src/nspawn/nspawn-settings.c