]> git.ipfire.org Git - thirdparty/systemd.git/commit
userdb: make most loading of JSON user record data "permissive"
authorLennart Poettering <lennart@poettering.net>
Mon, 31 May 2021 19:55:44 +0000 (21:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 1 Jun 2021 11:32:31 +0000 (13:32 +0200)
commitbfc0cc1a2506eb2327dca8e1a474be51634e8ab9
tree51c0e7a5b722bd442e842894d95a53ae22824f22
parent17e7561a973495992014dd102135f15eb808ae01
userdb: make most loading of JSON user record data "permissive"

We want user records to be extensible, hence we shouldn't complain about
fields we can't parse. In particular we want them to be extensible for
our own future extensions.

Some code already turned the permissive flag when parsing the JSON data,
but most did not. Fix that. A few select cases remain where the bit is
not set: where we just gnerated the JSON data ourselves, and thus can be
reasonably sure that if we can't parse it it's our immediate programming
error and not just us processing a user record from some other tool or a
newer version of ourselves.
20 files changed:
src/home/homectl.c
src/home/homed-bus.c
src/home/homed-home-bus.c
src/home/homed-home.c
src/home/homed-manager-bus.c
src/home/homed-manager.c
src/home/homed-varlink.c
src/home/homework-cifs.c
src/home/homework-directory.c
src/home/homework-fscrypt.c
src/home/homework-luks.c
src/home/homework.c
src/home/pam_systemd_home.c
src/home/user-record-sign.c
src/home/user-record-util.c
src/login/pam_systemd.c
src/nspawn/nspawn-bind-user.c
src/shared/user-record.c
src/shared/userdb-dropin.c
src/userdb/userwork.c