Skip to content

Commit aabbcbe

Browse files
oech3oech3
authored andcommitted
Merge branch 'main' into multicall-gtest
2 parents f15dee8 + e2b5dd6 commit aabbcbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

util/build-gnu.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ cd -
136136
ln ${UU_BUILD_DIR}/install ${UU_BUILD_DIR}/ginstall
137137
"${MAKE}" SKIP_UTILS=install MULTICALL=y PROFILE="${UU_MAKE_PROFILE}" CARGOFLAGS="${CARGO_FEATURE_FLAGS}"
138138

139-
[ ${SELINUX_ENABLED} = 1 ] && chcon -t bin_t "${UU_BUILD_DIR}/coreutils"
139+
[ ${SELINUX_ENABLED} = 1 ] && chcon -t unconfined_t "${UU_BUILD_DIR}/coreutils"
140140
for binary in $(${UU_BUILD_DIR}/coreutils --list); do
141-
(cd ${UU_BUILD_DIR} && cp -v --remove-destination coreutils "$binary")
142-
[ ${SELINUX_ENABLED} = 1 ] && chcon -t bin_t "${UU_BUILD_DIR}/${binary}"
141+
(cd ${UU_BUILD_DIR} && ln -vf coreutils "$binary")
143142
done
144-
[ ${SELINUX_ENABLED} = 1 ] && echo "stat with selinux support" && touch g && ${UU_BUILD_DIR}/stat -c%C g && rm g
143+
# min test for SELinux
144+
[ ${SELINUX_ENABLED} = 1 ] && "${UU_MAKE_PROFILE}"/touch g && "${UU_MAKE_PROFILE}"/stat -c%C g && "${UU_MAKE_PROFILE}"/rm g
145145

146146
##
147147

0 commit comments

Comments
 (0)