Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lxd/device/device_utils_disk: fix diskAddRootUserNSEntry to add root …
…mapping only if it's required Fix diskAddRootUserNSEntry logic to correcly handle case when we have not-groupped UID/GID mapping like this: [{true false 1000 0 1} {false true 1000 0 1}] because right now it assumes that mapping should be like [{true true 1000 0 1}] which is logically equivalent. This become noticable after my change in canonical#12718, before that this issue in logic was reproducible only if user will do something like this: cat << EOF uid $(id -u) 1000000 gid $(id -g) 1000000 EOF ) | lxc config set idmap raw.idmap - which is an extremely rare usecase. Fixes: canonical#13325 Signed-off-by: Alexander Mikhalitsyn <[email protected]>
- Loading branch information