File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,15 +136,12 @@ cd -
136136ln ${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 bin_t " ${UU_BUILD_DIR} /coreutils"
140140for binary in $( ${UU_BUILD_DIR} /coreutils --list) ; do
141141 (cd ${UU_BUILD_DIR} && cp -v --remove-destination coreutils " $binary " )
142- [ SELINUX_ENABLED = 1 ] && chcon -t bin_t " ${UU_BUILD_DIR} /${binary} "
142+ [ ${ SELINUX_ENABLED} = 1 ] && chcon -t bin_t " ${UU_BUILD_DIR} /${binary} "
143143done
144- touch g
145- echo " stat with selinux support"
146- ${UU_BUILD_DIR} /stat -c%C g || :
147- rm g
144+ [ ${SELINUX_ENABLED} = 1 ] && echo " stat with selinux support" && touch g && ${UU_BUILD_DIR} /stat -c%C g && rm g
148145
149146# #
150147
You can’t perform that action at this time.
0 commit comments