From 31c6c8150394de067085be5b0058037077860a8a Mon Sep 17 00:00:00 2001 From: Shan Hai Date: Tue, 13 Sep 2016 13:45:46 +0800 Subject: shadow: use relaxed usernames The groupadd from shadow does not allow upper case group names, the same is true for the upstream shadow. But distributions like Debian/Ubuntu/CentOS has their own way to cope with this problem, this patch is picked up from CentOS release 7.0 to relax the usernames restrictions to allow the upper case group names, and the relaxation is POSIX compliant because POSIX indicate that usernames are composed of characters from the portable filename character set [A-Za-z0-9._-]. Signed-off-by: Shan Hai Signed-off-by: Mingli Yu Signed-off-by: Ross Burton --- meta/recipes-extended/shadow/shadow.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/recipes-extended/shadow/shadow.inc') diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index 5605876988..35a18f8ab0 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc @@ -22,6 +22,7 @@ SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.xz \ SRC_URI_append_class-target = " \ file://login_defs_pam.sed \ file://shadow-update-pam-conf.patch \ + file://shadow-relaxed-usernames.patch \ " SRC_URI_append_class-native = " \ -- cgit 1.2.3-korg