]> git.ipfire.org Git - thirdparty/systemd.git/commit
process-util: add a flag for retaining dlopen()-ability
authorMike Yuan <me@yhndnzj.com>
Tue, 16 Dec 2025 00:54:40 +0000 (01:54 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 16 Dec 2025 20:07:20 +0000 (21:07 +0100)
commit29a823b3b6058f86a6fcd4a8fa9fd37d46109a2b
tree6458f69b9e9b2c55a395a7c920e231f42f805570
parent552822992cf5d4e8c760b4853f40a294185c7838
process-util: add a flag for retaining dlopen()-ability

While blocking dlopen() in child generally makes sense, it does
also lead to misery - in the very case of extension/cred refreshing
it then enforces loading of libcryptsetup/libacl in pid1, which
are otherwise never used. Let's add a flag to opt out hence, but
still prohibit it in namespace_fork/enter().
src/basic/namespace-util.c
src/basic/process-util.c
src/basic/process-util.h