Skip to content

Commit

Permalink
Merge pull request #192 from microsoft/scxcore/1.9.1-0
Browse files Browse the repository at this point in the history
Scxcore/v1.9.1 0
  • Loading branch information
Yash-Khatri authored Sep 20, 2024
2 parents dd0c064 + 4ab023d commit 4ec463f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
33 changes: 31 additions & 2 deletions build/Makefile.kits
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ kit : GetLinuxOS scx_scripts sepolicy

ifneq ($(COMBINED_PACKAGES),1)
sudo rm -rf $(STAGING_DIR)
mkdir -p $(INTERMEDIATE_DIR)/windbg
cp $(INTERMEDIATE_DIR)/libSCXCoreProviderModule.so $(INTERMEDIATE_DIR)/windbg/libSCXCoreProviderModule.so
python $(SCXPAL_DIR)/installer/InstallBuilder/installbuilder.py \
--BASE_DIR=$(SCX_BRD) \
--TARGET_DIR=$(INTERMEDIATE_DIR) \
Expand Down Expand Up @@ -187,7 +189,14 @@ else
# First comes RPM symbol packages
sudo rm -rf $(STAGING_DIR)
rm -rf $(INTERMEDIATE_DIR)/{098,100}
mkdir -p $(INTERMEDIATE_DIR)/{098,100}
mkdir -p $(INTERMEDIATE_DIR)/{098,100} $(INTERMEDIATE_DIR)/windbg
ifeq ($(ENABLE_SECURITY_HARDENING),1)
cp $(INTERMEDIATE_DIR)/libSCXCoreProviderModule.so $(INTERMEDIATE_DIR)/windbg/libSCXCoreProviderModule.so
else
ifneq ($(PF_ARCH),x64)
cp $(INTERMEDIATE_DIR)/libSCXCoreProviderModule.so $(INTERMEDIATE_DIR)/windbg/libSCXCoreProviderModule.so
endif
endif

python $(SCXPAL_DIR)/installer/InstallBuilder/installbuilder.py \
--BASE_DIR=$(SCX_BRD) \
Expand Down Expand Up @@ -227,7 +236,14 @@ else
sudo rm -rf $(STAGING_DIR)
ifeq ($(PF_ARCH),x64)
rm -rf $(INTERMEDIATE_DIR)/110
mkdir -p $(INTERMEDIATE_DIR)/110
mkdir -p $(INTERMEDIATE_DIR)/110 $(INTERMEDIATE_DIR)/windbg
ifeq ($(ENABLE_SECURITY_HARDENING),1)
cp $(INTERMEDIATE_DIR)/libSCXCoreProviderModule.so $(INTERMEDIATE_DIR)/windbg/libSCXCoreProviderModule.so
else
ifneq ($(PF_ARCH),x64)
cp $(INTERMEDIATE_DIR)/libSCXCoreProviderModule.so $(INTERMEDIATE_DIR)/windbg/libSCXCoreProviderModule.so
endif
endif
python $(SCXPAL_DIR)/installer/InstallBuilder/installbuilder.py \
--BASE_DIR=$(SCX_BRD) \
--TARGET_DIR=$(INTERMEDIATE_DIR)/110 \
Expand Down Expand Up @@ -623,6 +639,10 @@ ifneq ($(COMBINED_PACKAGES),1)
cd $(INTERMEDIATE_DIR); cp `cat $(INTERMEDIATE_DIR)/$(PACKAGE_FILENAME)`.sh $(TARGET_DIR)
endif # ifneq ($(DISTRO_TYPE),Linux)

# copy the symbol binaries to PACKAGE_DIR/windbg for native building
mkdir -p $(TARGET_DIR)/windbg
cp $(INTERMEDIATE_DIR)/windbg/libSCXCoreProviderModule.so $(TARGET_DIR)/windbg/libSCXCoreProviderModule.so

else # ifneq ($(COMBINED_PACKAGES),1)

# (Copying for combined packages)
Expand Down Expand Up @@ -660,6 +680,15 @@ else # ifneq ($(COMBINED_PACKAGES),1)
endif
../installer/bundle/create_bundle.sh $(DISTRO_TYPE) $(INTERMEDIATE_DIR) $(OUTPUT_BUNDLE_PREFIX).tar $(OUTPUT_BUNDLE_PREFIX) `cat $(INTERMEDIATE_DIR)/100/omi_package_filename` $(DISABLE_LISTENER)
cp $(INTERMEDIATE_DIR)/$(OUTPUT_BUNDLE_PREFIX).sh $(TARGET_DIR)
mkdir -p $(TARGET_DIR)/windbg;
# copy the symbol binaries to PACKAGE_DIR/windbg for Linux building
ifeq ($(ENABLE_SECURITY_HARDENING),1)
cp $(INTERMEDIATE_DIR)/windbg/libSCXCoreProviderModule.so $(TARGET_DIR)/windbg/libSCXCoreProviderModule.so
else
ifneq ($(PF_ARCH),x64)
cp $(INTERMEDIATE_DIR)/windbg/libSCXCoreProviderModule.so $(TARGET_DIR)/windbg/libSCXCoreProviderModule.so
endif
endif

endif # ifneq ($(COMBINED_PACKAGES),1)

Expand Down
4 changes: 2 additions & 2 deletions installer/bundle/bundle_skel_Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ ulinux_detect_openssl_version() {
fi
OPENSSL_SYSTEM_VERSION_100=`echo $OPENSSL_SYSTEM_VERSION_FULL | grep -Eq '^1.0.'; echo $?`
[ `uname -m` = "x86_64" ] && OPENSSL_SYSTEM_VERSION_110=`echo $OPENSSL_SYSTEM_VERSION_FULL | grep -Eq '^1.1.'; echo $?`
[ `uname -m` = "x86_64" ] && OPENSSL_SYSTEM_VERSION_300=`echo $OPENSSL_SYSTEM_VERSION_FULL | grep -Eq '^3.0.'; echo $?`
[ `uname -m` = "x86_64" ] && OPENSSL_SYSTEM_VERSION_300=`echo $OPENSSL_SYSTEM_VERSION_FULL | grep -Eq '^3.'; echo $?`
if [ $OPENSSL_SYSTEM_VERSION_100 = 0 ]; then
TMPBINDIR=100
elif [ $OPENSSL_SYSTEM_VERSION_110 = 0 ]; then
Expand All @@ -212,7 +212,7 @@ ulinux_detect_openssl_version() {
echo "Error: This system does not have a supported version of OpenSSL installed."
echo "This system's OpenSSL version: $OPENSSL_SYSTEM_VERSION_FULL"
if [ `uname -m` = "x86_64" ];then
echo "Supported versions: 1.0.*, 1.1.*, 3.0.*"
echo "Supported versions: 1.0.*, 1.1.*, 3.*"
else
echo "Supported versions: 1.0.*"
fi
Expand Down
4 changes: 2 additions & 2 deletions installer/datafiles/Linux.data
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ if [ `uname -m` != "x86_64" ];then
exit 1
fi
else
$OPENSSL_PATH version | awk '{print $2}' | grep -Eq '^1.0.|^1.1|^3.0'
$OPENSSL_PATH version | awk '{print $2}' | grep -Eq '^1.0.|^1.1|^3.'
if [ $? -ne 0 ]; then
echo 'Unsupported OpenSSL version - must be either 1.0.* or 1.1.*,3.0.*.'
echo 'Unsupported OpenSSL version - must be either 1.0.* or 1.1.*,3.*.'
echo 'Installation cannot proceed.'
exit 1
fi
Expand Down

0 comments on commit 4ec463f

Please sign in to comment.