]> git.ipfire.org Git - thirdparty/systemd.git/commit
executor: check for all permission related errnos when setting up IPC namespace
authorLuca Boccassi <bluca@debian.org>
Mon, 27 May 2024 00:52:11 +0000 (01:52 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 27 May 2024 08:58:15 +0000 (10:58 +0200)
commitcafe40ec8201db31c6d3519474ef40a72541d511
tree9371835574c4105ff9244cca0f83eebe39301f2f
parente8b81df8b2396a2fb87dccad40a67ae4c15aa164
executor: check for all permission related errnos when setting up IPC namespace

Denials from AppArmor are raised as EACCES, so EPERM is not enough. Do
the same check as PrivateNetwork above.

Fixes https://github.com/systemd/systemd/issues/31037

Related to 06384eb3c5044f632f50304a0210a402460f1189
src/core/exec-invoke.c