]> git.ipfire.org Git - thirdparty/systemd.git/commit
userdb: suppress lookups outside of indicated ranges
authorLennart Poettering <lennart@amutable.com>
Thu, 9 Jul 2026 13:35:38 +0000 (15:35 +0200)
committerLennart Poettering <lennart@amutable.com>
Sun, 12 Jul 2026 21:09:01 +0000 (23:09 +0200)
commit00a7b1d2d8d5de7548da69123832b913467235c0
tree9ce1065a64c58dfaf5e7f2a377f8f04087bd7115
parent65796105a9c8d32e1c1fd65f56c34c38c384db14
userdb: suppress lookups outside of indicated ranges

When doing a userdb lookup we might end up issuing a lot of IPC calls in
parallel to backends and cause them all to do work, with us waiting for
it. Let's optimize this a bit, and indicate on the socket inodes via
xattrs hints which kind of records are provided by a backend. That way
we can suppress lookups to them and optimize runtime behaviour.

This only works on Linux 7.1 and newer where socket inodes gained
support for extended attributes.
docs/USER_GROUP_API.md
src/shared/userdb.c