@@ -295,7 +295,7 @@ opt manage-submodules 1 "let the build manage the git submodules"
295295opt mingw-cross 0 " cross-compile for win32 using mingw"
296296opt clang 0 " prefer clang to gcc for building the runtime"
297297opt local-rust 0 " use an installed rustc rather than downloading a snapshot"
298- opt pax-marks 0 " apply PaX markings to rustc binaries (required for GRSecurity/PaX-patched kernels)"
298+ opt pax-flags 0 " apply PaX flags to rustc binaries (required for GRSecurity/PaX-patched kernels)"
299299valopt prefix " /usr/local" " set installation prefix"
300300valopt local-rust-root " /usr/local" " set prefix for local rust binary"
301301valopt llvm-root " " " set LLVM root"
@@ -344,8 +344,11 @@ probe CFG_PDFLATEX pdflatex
344344probe CFG_XETEX xetex
345345probe CFG_LUATEX luatex
346346probe CFG_NODE nodejs node
347- probe CFG_PAXCTL paxctl /sbin/paxctl
348- probe CFG_ZCAT zcat
347+ if [ " $CFG_OSTYPE " = " unknown-linux-gnu" ]
348+ then
349+ probe CFG_PAXCTL paxctl /sbin/paxctl
350+ probe CFG_ZCAT zcat
351+ fi
349352
350353if [ ! -z " $CFG_PANDOC " ]
351354then
359362
360363if [ " $CFG_OSTYPE " = " unknown-linux-gnu" ]
361364then
362- if [ ! -z " $CFG_ENABLE_PAX_MARKS " -a -z " $CFG_PAXCTL " ]
365+ if [ ! -z " $CFG_ENABLE_PAX_FLAGS " -a -z " $CFG_PAXCTL " ]
363366 then
364367 err " enabled PaX markings but no paxctl binary found"
365368 fi
366369
367- if [ -z " $CFG_DISABLE_PAX_MARKS " ]
370+ if [ -z " $CFG_DISABLE_PAX_FLAGS " ]
368371 then
369372 # GRSecurity/PaX detection. This can be very flaky.
370373 GRSEC_DETECTED=
371374
372375 # /dev/grsec only exists if CONFIG_GRKERNSEC_NO_RBAC is not set.
373- # /proc is normally only available to root and users in the CONFIG_GRKERNSEC_PROC_GID group,
374- # and /proc/sys/kernel/grsecurity is not available if ÇONFIG_GRKERNSEC_SYSCTL is not set.
376+ # /proc/sys/kernel/grsecurity is not available if ÇONFIG_GRKERNSEC_SYSCTL is not set.
375377 if [ -e /dev/grsec -o -d /proc/sys/kernel/grsecurity ]
376378 then
377379 GRSEC_DETECTED=1
393395 step_msg " GRSecurity: yes"
394396 if [ ! -z " $CFG_PAXCTL " ]
395397 then
396- CFG_ENABLE_PAX_MARKS =1
398+ CFG_ENABLE_PAX_FLAGS =1
397399 else
398- warn " GRSecurity kernel detected but no paxctl binary found: not setting CFG_ENABLE_PAX_MARKS "
400+ warn " GRSecurity kernel detected but no paxctl binary found: not setting CFG_ENABLE_PAX_FLAGS "
399401 fi
400402 else
401403 step_msg " GRSecurity: no"
@@ -748,9 +750,9 @@ putvar CFG_C_COMPILER
748750putvar CFG_LIBDIR
749751putvar CFG_DISABLE_MANAGE_SUBMODULES
750752
751- if [ ! -z " $CFG_ENABLE_PAX_MARKS " ]
753+ if [ ! -z " $CFG_ENABLE_PAX_FLAGS " ]
752754then
753- putvar CFG_ENABLE_PAX_MARKS
755+ putvar CFG_ENABLE_PAX_FLAGS
754756 putvar CFG_PAXCTL
755757fi
756758
0 commit comments