From 53393c894dd4ab944d88acd4e7070714342d1597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 25 Sep 2020 16:31:42 +0200 Subject: Look at /etc/login.defs for the system_max_[ug]id values It makes little sense to make the boundary between systemd and user guids configurable. Nevertheless, a completely fixed compile-time define is not enough in two scenarios: - the systemd_uid_max boundary has moved over time. The default used to be 500 for a long time. Systems which are upgraded over time might have users in the wrong range, but changing existing systems is complicated and expensive (offline disks, backups, remote systems, read-only media, etc.) - systems are used in a heterogenous enviornment, where some vendors pick one value and others another. So let's make this boundary overridable using /etc/login.defs. Fixes #3855, #10184. --- meson_options.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'meson_options.txt') diff --git a/meson_options.txt b/meson_options.txt index fc9e4379f3..a33b6e27ae 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -28,9 +28,9 @@ option('static-libsystemd', type : 'combo', description : '''install a static library for libsystemd''') option('static-libudev', type : 'combo', choices : ['false', 'true', 'pic', 'no-pic'], - description : '''install a static library for libudev''') + description : 'install a static library for libudev') option('standalone-binaries', type : 'boolean', value : 'false', - description : '''also build standalone versions of supported binaries''') + description : 'also build standalone versions of supported binaries') option('sysvinit-path', type : 'string', value : '/etc/init.d', description : 'the directory where the SysV init scripts are located') @@ -40,8 +40,10 @@ option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit', description : 'path to telinit') option('rc-local', type : 'string', value : '/etc/rc.local') -option('initrd', type: 'boolean', +option('initrd', type : 'boolean', description : 'install services for use when running systemd in initrd') +option('compat-mutable-uid-boundaries', type : 'boolean', value : 'false', + description : 'look at uid boundaries in /etc/login.defs for compatibility') option('quotaon-path', type : 'string', description : 'path to quotaon') option('quotacheck-path', type : 'string', description : 'path to quotacheck') -- cgit v1.2.1