]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/nspawn/nspawn.c
nspawn: don't chown() stdin/stdout passed in when --console=pipe is used 17233/head
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Oct 2020 09:59:45 +0000 (11:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 2 Oct 2020 10:05:08 +0000 (12:05 +0200)
commit3462d773d2d98c213408b929e19b86a502f2fab6
tree3f7cc7b519695cd69063792821900630c946f0dd
parent781fa474d8560692e5de43461c254a4132e298b8
nspawn: don't chown() stdin/stdout passed in when --console=pipe is used

We should chown what we allocate ourselves, i.e. any pty we allocate
ourselves. But for stuff we propagate, let's avoid that: we shouldn't
make more changes than necessary.

Fixes: #17229
src/nspawn/nspawn-setuid.c
src/nspawn/nspawn-setuid.h
src/nspawn/nspawn.c