From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] systemd: do not use host system-uid/gid ranges
Date: Thu, 8 Mar 2018 17:27:10 +0100 [thread overview]
Message-ID: <20180308162710.GA5823@scaer> (raw)
In-Reply-To: <20180308142509.26795-1-anssi.hannula@bitwise.fi>
Anssi, All,
On 2018-03-08 16:25 +0200, Anssi Hannula spake thusly:
> systemd meson.build uses values from host /etc/login.defs if
> system-uid-max and system-gid-max build options are not explicitly
> specified.
>
> Avoid that by setting system-uid-max and system-gid-max to 999 which is
> the systemd default if SYSTEM_UID_MAX and SYSTEM_GID_MAX are not set in
> /etc/login.defs.
>
> Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Would we need to do something with dynamic-uid-min, dynamic-uid-max, and
so on?
Regards,
Yann E. MORIN.
> ---
> package/systemd/systemd.mk | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
> index 8c22c08..3bc322c 100644
> --- a/package/systemd/systemd.mk
> +++ b/package/systemd/systemd.mk
> @@ -40,6 +40,8 @@ SYSTEMD_CONF_OPTS += \
> -Dldconfig=false \
> -Ddefault-dnssec=no \
> -Dtests=false \
> + -Dsystem-uid-max=999 \
> + -Dsystem-gid-max=999 \
> -Dtelinit-path=$(TARGET_DIR)/sbin/telinit \
> -Dkill-path=/usr/bin/kill \
> -Dkmod-path=/usr/bin/kmod \
> --
> 2.8.3
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2018-03-08 16:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-08 14:25 [Buildroot] [PATCH] systemd: do not use host system-uid/gid ranges Anssi Hannula
2018-03-08 16:27 ` Yann E. MORIN [this message]
2018-03-09 8:15 ` Anssi Hannula
2018-03-09 21:35 ` Peter Korsgaard
2018-04-07 15:39 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180308162710.GA5823@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox