]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSetUIDGIDWithCaps: Drop redundant parenthesis around capng_apply()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 22 Jul 2021 12:12:14 +0000 (14:12 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 26 Jul 2021 07:53:09 +0000 (09:53 +0200)
commitb69affe3c1df8302300d6622ab747c9bef854d8f
tree79c20a5ea77878827f0e500b8f42e346455a4bc6
parentcd72f0cd9f7b0b7d0e2964d5dd38d2a95fa784c4
virSetUIDGIDWithCaps: Drop redundant parenthesis around capng_apply()

After all capabilities were set (except for CAP_SETGID,
CAP_SETUID and CAP_SETPCAP) and after UID:GID was changed we drop
the last aforementioned capabilities (we couldn't drop them
before because we needed UID:GID and capabilities change).
Therefore, there's final capng_apply() call. However, it is
wrapped in one layer of parenthesis more than needed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virutil.c