]> git.ipfire.org Git - thirdparty/lxc.git/commit
attach: Fix -c command 3954/head
authorMaximilian Blenk <Maximilian.Blenk@bmw.de>
Mon, 23 Aug 2021 13:39:28 +0000 (15:39 +0200)
committerMaximilian Blenk <Maximilian.Blenk@bmw.de>
Mon, 30 Aug 2021 11:06:35 +0000 (13:06 +0200)
commit9becf309a81806ef08acf9ca99ab95c1bcfa1f65
treec6addfd25660e0f0f6c54204c708f05df5420fb1
parent6446bf47d39235eb700be3e508b404aae840b29a
attach: Fix -c command

Currently, the -c command (to set the selinux context) seems to be
broken because the passed context is ignored and always overwritten by
the context specified in the config file. The intention behind the -c
imho was to be able to manually overwrite this behavior. This patch
ensures that the selinux context will be set if passed via the command
line.

Signed-off-by: Maximilian Blenk <Maximilian.Blenk@bmw.de>
src/lxc/tools/lxc_attach.c