Skip to content
Snippets Groups Projects
Commit c9af7ceb authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

shadow: Enable subid support


shadow utils are used when creating users at image creation time. The
useradd/usermod tools will only try to add a default configuration for
subid files if they exist. subid files are needed for podman rootless
support.

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent dd7cf5b9
No related branches found
No related tags found
1 merge request!204Integrate podman in Oniro
...@@ -9,5 +9,12 @@ ...@@ -9,5 +9,12 @@
# Removing -Werror=format-nonliteral here allows us to use # Removing -Werror=format-nonliteral here allows us to use
# -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode # -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode
# while keeping shadow building. # while keeping shadow building.
TARGET_CFLAGS:remove = "-Werror=format-nonliteral" TARGET_CFLAGS:remove = "-Werror=format-nonliteral"
do_install:append () {
# usermod requires the subuid/subgid files to be in place before being
# able to use the -v/-V flags otherwise it fails:
# usermod: /etc/subuid does not exist, you cannot use the flags -v or -V
touch ${D}${sysconfdir}/subuid
touch ${D}${sysconfdir}/subgid
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment