Systemd/src/timesync
Lennart Poettering fafff8f1ff user-util: rework get_user_creds()
Let's fold get_user_creds_clean() into get_user_creds(), and introduce a
flags argument for it to select "clean" behaviour. This flags parameter
also learns to other new flags:

- USER_CREDS_SYNTHESIZE_FALLBACK: in this mode the user records for
  root/nobody are only synthesized as fallback. Normally, the synthesized
  records take precedence over what is in the user database.  With this
  flag set this is reversed, and the user database takes precedence, and
  the synthesized records are only used if they are missing there. This
  flag should be set in cases where doing NSS is deemed safe, and where
  there's interest in knowing the correct shell, for example if the
  admin changed root's shell to zsh or suchlike.

- USER_CREDS_ALLOW_MISSING: if set, and a UID/GID is specified by
  numeric value, and there's no user/group record for it accept it
  anyway. This allows us to fix #9767

This then also ports all users to set the most appropriate flags.

Fixes: #9767

[zj: remove one isempty() call]
2018-08-20 15:58:21 +02:00
..
meson.build Drop my copyright headers 2018-06-14 13:03:20 +02:00
org.freedesktop.timesync1.conf timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
org.freedesktop.timesync1.service timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
test-timesync.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
timesyncd-bus.c timesync,shared: move logic requesting bus name to shared 2018-05-22 22:20:17 +09:00
timesyncd-bus.h timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
timesyncd-conf.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
timesyncd-conf.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
timesyncd-gperf.gperf timesync: fix typo 2018-01-10 20:52:59 +09:00
timesyncd-manager.c timesync: voidify sd_event_add_signal() and sd_event_set_watchdog() 2018-07-20 11:30:11 +09:00
timesyncd-manager.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
timesyncd-ntp-message.h timesync: save and expose NTP responce on bus 2018-05-03 18:05:14 +09:00
timesyncd-server.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
timesyncd-server.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
timesyncd.c user-util: rework get_user_creds() 2018-08-20 15:58:21 +02:00
timesyncd.conf.in timesync: make poll interval configurable 2017-11-08 01:47:38 +09:00