]> git.ipfire.org Git - thirdparty/systemd.git/commit
dbus: limit the number of env variables to something reasonable, vol. 2 41891/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 30 Apr 2026 12:03:47 +0000 (14:03 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 1 May 2026 18:11:53 +0000 (20:11 +0200)
commit49c1e1bcf2b482b6de35a4212a06ed1d8c382745
treee9699e52540c67f309438f7fb588f4b9d653847a
parenteb357bfff8685c10e7b1f6365b3a80cd792f0336
dbus: limit the number of env variables to something reasonable, vol. 2

Turns out we can utilize this limit at a couple more places, so let's
move the previously defined limit constant to env-util.h and use it to
guard a couple more D-Bus methods. Also, bump it a bit, given it's meant
to be a safety cap that can't be hit in valid scenarios.

Follow-up for 7671b43cb88532cce2aa9ad12f777922206d6a42.
src/basic/env-util.h
src/core/dbus-manager.c
src/libsystemd/sd-json/json-util.h
src/machine/machine-dbus.c