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.
This commit is contained in:
myrkr 2017-10-24 09:56:40 +02:00 committed by Lennart Poettering
parent fc5ffacdab
commit 1898e5f9a3
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ int config_parse_capability(
continue;
}
u |= 1 << ((uint64_t) cap);
u |= UINT64_C(1) << cap;
}
if (u == 0)