Skip to content

Commit 039110b

Browse files
author
auREAX
committed
Fix unnecessary tool detection at non-Linux OSes, fix GRSecurity detection documentation error.
1 parent e3f458e commit 039110b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

configure

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,11 @@ probe CFG_PDFLATEX pdflatex
344344
probe CFG_XETEX xetex
345345
probe CFG_LUATEX luatex
346346
probe 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

350353
if [ ! -z "$CFG_PANDOC" ]
351354
then
@@ -370,8 +373,7 @@ then
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

0 commit comments

Comments
 (0)