]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: determine_uid_shift before forking 429/head
authorRichard Maw <richard.maw@codethink.co.uk>
Tue, 30 Jun 2015 13:41:41 +0000 (13:41 +0000)
committerRichard Maw <richard.maw@codethink.co.uk>
Tue, 30 Jun 2015 14:05:58 +0000 (14:05 +0000)
commit7fe2bb84c49233ca4da76c0df377819b93571f9c
treed56388441027cec0d671697692197ed4f3e15150
parent9ebdb1e057045d2b96f5980c61667cd41914177b
nspawn: determine_uid_shift before forking

It is needed in one branch of the fork, but calculated in another
branch.

Failing to do this means using --private-users without specifying a uid
shift always fails because it tries to shift the uid to UID_INVALID.
src/nspawn/nspawn.c