mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 16:35:44 +00:00
base-files: add missing $IPKG_INSTROOT to restorecon call
Update to overlooked v2 version of Dominick Grift's patch. Fixes: 5109bd164c ("base-files: address sed in-place without SELinux awareness") Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commit 6d7272852e0b2634b2fa93a131ea8659ec87f079)
This commit is contained in:
parent
9282cb0be0
commit
6cb08b1797
@ -386,7 +386,9 @@ group_add_user() {
|
||||
echo "$grp" | grep -q ":$" && delim=""
|
||||
[ -n "$IPKG_INSTROOT" ] || lock /var/lock/passwd
|
||||
sed -i "s/$grp/$grp$delim$2/g" ${IPKG_INSTROOT}/etc/group
|
||||
selinuxenabled 2>/dev/null && restorecon /etc/group
|
||||
if [ -x /usr/sbin/selinuxenabled ] && selinuxenabled; then
|
||||
selinuxenabled 2>/dev/null && restorecon ${IPKG_INSTROOT}/etc/group
|
||||
fi
|
||||
[ -n "$IPKG_INSTROOT" ] || lock -u /var/lock/passwd
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user