Systemd/src
Zbigniew Jędrzejewski-Szmek ae480f0b09 shared/user-util: allow usernames with dots in specific fields
People do have usernames with dots, and it makes them very unhappy that systemd
doesn't like their that. It seems that there is no actual problem with allowing
dots in the username. In particular chown declares ":" as the official
separator, and internally in systemd we never rely on "." as the seperator
between user and group (nor do we call chown directly). Using dots in the name
is probably not a very good idea, but we don't need to care. Debian tools
(adduser) do not allow users with dots to be created.

This patch allows *existing* names with dots to be used in User, Group,
SupplementaryGroups, SocketUser, SocketGroup fields, both in unit files and on
the command line. DynamicUsers and sysusers still follow the strict policy.
user@.service and tmpfiles already allowed arbitrary user names, and this
remains unchanged.

Fixes #12754.
2019-08-19 21:19:13 +02:00
..
ac-power
activate activate: move array allocation to heap 2019-07-16 14:56:25 +02:00
analyze analyze-security: move assert above first use of the variable (#13238) 2019-07-31 16:13:35 +02:00
ask-password Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
backlight tree-wide: (void)ify a few unlink() and rmdir() 2019-03-27 18:09:56 +01:00
basic shared/user-util: add compat forms of user name checking functions 2019-08-19 21:04:57 +02:00
binfmt tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
boot boot: fix build with gnu-efi older than 3.0.5 2019-07-30 18:58:15 +02:00
busctl busctl: port "busctl list" to format_table.h 2019-07-29 18:48:45 +02:00
cgls tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
cgroups-agent
cgtop tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
core shared/user-util: allow usernames with dots in specific fields 2019-08-19 21:19:13 +02:00
coredump Merge pull request #13092 from keszybz/coverity-fixes 2019-07-17 14:18:49 +02:00
cryptsetup cryptsetup-generator: fix coverity issue 2019-07-31 09:38:59 +02:00
debug-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
delta tree-wide: replace strjoina() with prefix_roota() 2019-06-25 01:31:26 +09:00
detect-virt Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
dissect
environment-d-generator Create src/shared/unit-file.[ch] for unit-file related ops 2019-07-19 16:51:14 +02:00
escape Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
firstboot firstboot: only list all options on demand 2019-07-17 12:07:19 +02:00
fsck fsck: split out fsck return code definitions into a header file of its own 2019-07-05 02:31:12 +09:00
fstab-generator fstab-generator: Prevent double free of reused FILE* 2019-05-03 13:22:36 +02:00
fuzz udev: modernize udev-rules.c 2019-06-02 14:15:26 +09:00
getty-generator tree-wide: make use of errno_or_else() everywhere 2019-07-11 23:20:31 +02:00
gpt-auto-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
hibernate-resume hibernate-resume: add resumeflags= kernel option 2019-06-05 18:59:05 -06:00
hostname tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
hwdb
id128 Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
import tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
initctl headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
journal journald: lower keep_free to 5% and raise min_use to 2% 2019-07-26 16:45:49 +02:00
journal-remote tree-wide: introduce strerror_safe() 2019-07-05 02:43:56 +09:00
kernel-install kernel-install: add a check that the vmlinuz arg is sane 2019-04-03 11:25:40 +02:00
libsystemd Add IFLA_BR_MCAST_IGMP_VERSION 2019-07-25 09:54:52 +09:00
libsystemd-network tree-wide: drop netinet/ether.h from socket-util.h and sd-netlink.h 2019-07-24 18:23:08 +09:00
libudev libudev: Update list of possible actions 2019-07-24 05:14:52 +09:00
locale tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
login logind: notify dbus of changes to session State 2019-07-29 19:28:17 +02:00
machine tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
machine-id-setup
modules-load
mount tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
network Merge pull request #13189 from yuwata/network-initrd-generator-unit 2019-07-30 16:38:59 +02:00
notify tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
nspawn Merge pull request #13209 from poettering/nspawn-volatile-merged-usr 2019-07-29 14:25:04 +02:00
nss-myhostname nss-myhostname: unify code that handles NOT_FOUND case 2019-04-11 11:13:10 +02:00
nss-mymachines meson: make nologin path build time configurable 2019-07-18 12:46:35 +02:00
nss-resolve codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
nss-systemd meson: make nologin path build time configurable 2019-07-18 12:46:35 +02:00
partition growfs: call crypt_set_debug_level() correctly, skip if not needed 2019-07-08 16:04:17 +03:00
path Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
portable Create src/shared/unit-file.[ch] for unit-file related ops 2019-07-19 16:51:14 +02:00
pstore Merge pull request #13133 from keszybz/pstore-return-value 2019-07-22 18:29:52 +02:00
quotacheck headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
random-seed random-seed: rework systemd-random-seed.service substantially 2019-07-25 18:30:06 +02:00
rc-local-generator Drop support for /usr/sbin/halt.local 2019-05-23 10:19:01 +02:00
remount-fs
reply-password Remove string_free_erase 2019-07-10 13:48:55 +02:00
resolve Merge pull request #13047 from niedbalski/fix-5552-pr 2019-07-17 19:27:16 +02:00
rfkill util: make device_wait_for_initialization() optionally takes timeout value 2019-06-04 01:19:43 +09:00
run run: move comment to appropriate place 2019-07-16 14:29:04 +02:00
run-generator headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
shared unit-file: fix coverity issue 2019-07-31 09:39:12 +02:00
shutdown shutdown: merge variable declaration lines a bit 2019-07-13 11:05:07 +02:00
sleep systemd-sleep: refuse to calculate swapfile offset on Btrfs 2019-06-26 22:04:59 -07:00
socket-proxy tree-wide: port users over to use new ERRNO_IS_ACCEPT_AGAIN() call 2019-04-10 22:11:18 +02:00
stdio-bridge
sulogin-shell
sysctl sysctl: if options are prefixed with "-" ignore write errors 2019-07-26 09:24:47 +02:00
system-update-generator system-update-generator: do not emit bogus warning if no /system-update symlink 2019-06-12 17:27:17 +02:00
systemctl Merge pull request #13119 from keszybz/unit-loading-2 2019-07-30 17:55:37 +02:00
systemd tree-wide: drop netinet/ether.h from socket-util.h and sd-netlink.h 2019-07-24 18:23:08 +09:00
sysusers Merge pull request #13096 from keszybz/unit-loading 2019-07-19 21:47:10 +02:00
sysv-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
test shared/user-util: add compat forms of user name checking functions 2019-08-19 21:04:57 +02:00
time-wait-sync codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
timedate timedated: add back support for ntp-units.d/ 2019-07-22 15:21:20 +02:00
timesync timesyncd: add ntp-units.d/ entry for timesync 2019-07-22 15:21:23 +02:00
tmpfiles tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
tty-ask-password-agent shared/exit-status: use Bitmap instead of Sets 2019-07-29 15:54:53 +02:00
udev udev: warn on rules files with weird access modes 2019-07-29 18:51:38 +02:00
update-done headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
update-utmp headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
user-sessions headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
vconsole vconsole-setup: rename toggle_utf8() → toggle_utf8_vc() 2019-07-18 16:21:02 +02:00
veritysetup tree-wide: replace strjoin() with path_join() 2019-06-24 23:59:38 +09:00
version
volatile-root mount-util: beef up bind_remount_recursive() to be able to toggle more than MS_RDONLY 2019-03-25 19:33:55 +01:00