41ea61d59c
Some software decides based on uid/gid whether a user is a system or normal (human) user, with different behaviour for those flavors (example journald [2]). So adding logic to create system-users is necessary, we take the now common ranges from [1]. This extends the mkusers script to allow -2 for uid/gid, this argument will take an identifier from the user range. All identifiers used up to now should have been from the system range, so -1 is now interpreted as a system user/group. Note that after this commit, all the UIDs and GIDs that are created automatically (with -1) will change. That means if there is peristent data on an existing system that was created by such an automatic user, it will suddenly belong to a different user. However, this could already happen before: if a USERS line is added to a package, then other UIDs may change as well. Add system/user ranges as variables, and the argument for user/system uid variable as well. Thus some magic constants could be removed, some further occurences of -1 were replaced with equivalent logic. For consistency, the existing MIN/MAX_UID/GID variables are renamed to FIRST/LAST_USER_UID/GID. Update the documentation with the new automatic ranges. [1] - https://systemd.io/UIDS-GIDS/ [2] - https://www.freedesktop.org/software/systemd/man/journald.conf.html Signed-off-by: Norbert Lange <nolange79@gmail.com> [Arnout: use -1 for system users; refactor the changes a bit] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> |
||
---|---|---|
.. | ||
adding-board-support.txt | ||
adding-packages-asciidoc.txt | ||
adding-packages-autotools.txt | ||
adding-packages-cargo.txt | ||
adding-packages-cmake.txt | ||
adding-packages-conclusion.txt | ||
adding-packages-directory.txt | ||
adding-packages-generic.txt | ||
adding-packages-gettext.txt | ||
adding-packages-golang.txt | ||
adding-packages-hooks.txt | ||
adding-packages-kconfig.txt | ||
adding-packages-kernel-module.txt | ||
adding-packages-linux-kernel-spec-infra.txt | ||
adding-packages-luarocks.txt | ||
adding-packages-meson.txt | ||
adding-packages-perl.txt | ||
adding-packages-python.txt | ||
adding-packages-qmake.txt | ||
adding-packages-rebar.txt | ||
adding-packages-tips.txt | ||
adding-packages-virtual.txt | ||
adding-packages-waf.txt | ||
adding-packages.txt | ||
advanced.txt | ||
appendix.txt | ||
beyond-buildroot.txt | ||
ccache-support.txt | ||
common-usage.txt | ||
configure-other-components.txt | ||
configure.txt | ||
contribute.txt | ||
customize-configuration.txt | ||
customize-device-permission-tables.txt | ||
customize-directory-structure.txt | ||
customize-outside-br.txt | ||
customize-packages.txt | ||
customize-patches.txt | ||
customize-post-image.txt | ||
customize-quick-guide.txt | ||
customize-rootfs.txt | ||
customize-users-tables.txt | ||
customize.txt | ||
debugging-buildroot.txt | ||
developers.txt | ||
download-infra.txt | ||
download-location.txt | ||
eclipse-integration.txt | ||
faq-troubleshooting.txt | ||
getting.txt | ||
how-buildroot-works.txt | ||
introduction.txt | ||
known-issues.txt | ||
legal-notice.txt | ||
make-tips.txt | ||
makedev-syntax.txt | ||
makeusers-syntax.txt | ||
manual.mk | ||
manual.txt | ||
migrating.txt | ||
package-make-target.txt | ||
patch-policy.txt | ||
prerequisite.txt | ||
quickstart.txt | ||
rebuilding-packages.txt | ||
release-engineering.txt | ||
resources.txt | ||
selinux-support.txt | ||
using-buildroot-debugger.txt | ||
using-buildroot-development.txt | ||
using-buildroot-toolchain.txt | ||
writing-rules.txt |