diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-10-14 15:25:33 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-10-15 02:10:36 +0200 |
commit | ceb2061587b5113f58afc6944969ff79512a8767 (patch) | |
tree | f5d5f527c2646534a235dce054ec0399161ef3d4 /checksum.c | |
parent | ea5936dd3f6293fb761e3b670a0f40233e5396fd (diff) | |
download | passt-ceb2061587b5113f58afc6944969ff79512a8767.tar passt-ceb2061587b5113f58afc6944969ff79512a8767.tar.gz passt-ceb2061587b5113f58afc6944969ff79512a8767.tar.bz2 passt-ceb2061587b5113f58afc6944969ff79512a8767.tar.lz passt-ceb2061587b5113f58afc6944969ff79512a8767.tar.xz passt-ceb2061587b5113f58afc6944969ff79512a8767.tar.zst passt-ceb2061587b5113f58afc6944969ff79512a8767.zip |
isolation: Refactor isolate_user() to allow for a common exit path
Currently, isolate_user() exits early if the --netns-only option is given.
That works for now, but shortly we're going to want to add some logic to
go at the end of isolate_user() that needs to run in all cases: joining a
given userns, creating a new userns, or staying in our original userns
(--netns-only).
To avoid muddying those changes, here we reorganize isolate_user() to have
a common exit path for all cases.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'checksum.c')
0 files changed, 0 insertions, 0 deletions