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:
parent
fc5ffacdab
commit
1898e5f9a3
|
@ -202,7 +202,7 @@ int config_parse_capability(
|
|||
continue;
|
||||
}
|
||||
|
||||
u |= 1 << ((uint64_t) cap);
|
||||
u |= UINT64_C(1) << cap;
|
||||
}
|
||||
|
||||
if (u == 0)
|
||||
|
|
Loading…
Reference in New Issue