]> git.ipfire.org Git - thirdparty/systemd.git/commit
userdb: move UserDBMatch handling from userdbctl into generic userdb code to allow...
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Jan 2025 15:40:47 +0000 (16:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 27 Jan 2025 22:51:57 +0000 (23:51 +0100)
commit7419291670dd4066594350cce585031f60bc4f0a
tree5619e63614df246599f7f375cf4bfe9c28bbf98a
parent1ff1e0e01b8cddea89aad88671069527b981a9a2
userdb: move UserDBMatch handling from userdbctl into generic userdb code to allow it to be done server side

This moves around the UserDBMatch handling, moves it out of userdbctl
and into generic userdb code, so that it can be passed to the server
side, to allow server side filtering.

This is preparation for one day allowing complex software to do such
filtering server side, and thus reducing the necessary traffic.

Right now no server side actually knows this, hence care is taken to
downgrade to the userdb varlink API as it was in v257 in case the new
options are not understood. This retains compatibility with any
implementation hence.
13 files changed:
src/home/homectl.c
src/login/logind-core.c
src/login/pam_systemd.c
src/login/user-runtime-dir.c
src/nspawn/nspawn-bind-user.c
src/nsresourced/nsresourcework.c
src/nss-systemd/nss-systemd.c
src/nss-systemd/userdb-glue.c
src/shared/user-record-show.c
src/shared/userdb.c
src/shared/userdb.h
src/userdb/userdbctl.c
src/userdb/userwork.c