From 7168162a9ec51ce94a93ce8b0c296f3c56634a99 Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Fri, 18 May 2018 12:07:24 +0800 Subject: [PATCH 2/2] misc-functions: fix selinux labelling on musl musl's implementation of getopt is different from glibc's in that it does not accept flags after non-flag arguments, moving the flags earlier makes SELinux labelling work on musl also. Signed-off-by: Jason Zaman --- bin/misc-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index f3ad52305..de8af955d 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -447,7 +447,7 @@ preinst_selinux_labels() { addwrite /sys/fs/selinux/context - /usr/sbin/setfiles -F "${file_contexts_path}" -r "${D}" "${D}" + /usr/sbin/setfiles -F -r "${D}" "${file_contexts_path}" "${D}" ) || die "Failed to set SELinux security labels." else # nonfatal, since merging can happen outside a SE kernel -- 2.16.1