Skip to content

Commit a4b9e01

Browse files
committed
---
yaml --- r: 31015 b: refs/heads/incoming c: c89b051 h: refs/heads/master i: 31013: b80e251 31011: a24cfda 31007: 6bcebe8 v: v3
1 parent e2bba6a commit a4b9e01

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: c83218de12748a678e873813a6b8381f46fae590
9+
refs/heads/incoming: c89b0517017c0f420e7fd48aa0e82b767b08d262
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/configure

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ opt manage-submodules 1 "let the build manage the git submodules"
295295
opt mingw-cross 0 "cross-compile for win32 using mingw"
296296
opt clang 0 "prefer clang to gcc for building the runtime"
297297
opt 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)"
299299
valopt prefix "/usr/local" "set installation prefix"
300300
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
301301
valopt llvm-root "" "set LLVM root"
@@ -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
@@ -359,19 +362,18 @@ fi
359362

360363
if [ "$CFG_OSTYPE" = "unknown-linux-gnu" ]
361364
then
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
@@ -393,9 +395,9 @@ then
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
748750
putvar CFG_LIBDIR
749751
putvar CFG_DISABLE_MANAGE_SUBMODULES
750752

751-
if [ ! -z "$CFG_ENABLE_PAX_MARKS" ]
753+
if [ ! -z "$CFG_ENABLE_PAX_FLAGS" ]
752754
then
753-
putvar CFG_ENABLE_PAX_MARKS
755+
putvar CFG_ENABLE_PAX_FLAGS
754756
putvar CFG_PAXCTL
755757
fi
756758

branches/incoming/mk/stage0.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ ifdef CFG_ENABLE_LOCAL_RUST
1212
$(Q)$(S)src/etc/local_stage0.sh $(CFG_HOST_TRIPLE) $(CFG_LOCAL_RUST_ROOT)
1313
else
1414
$(Q)$(S)src/etc/get-snapshot.py $(CFG_HOST_TRIPLE) $(SNAPSHOT_FILE)
15-
ifdef CFG_ENABLE_PAX_MARKS
16-
@$(call E, apply PaX markings: $@)
15+
ifdef CFG_ENABLE_PAX_FLAGS
16+
@$(call E, apply PaX flags: $@)
1717
@"$(CFG_PAXCTL)" -cm "$@"
1818
endif
1919
endif

branches/incoming/mk/target.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ $$(TBIN$(1)_T_$(2)_H_$(3))/rustc$$(X): \
2929
$$(TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3))
3030
@$$(call E, compile_and_link: $$@)
3131
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$<
32-
ifdef CFG_ENABLE_PAX_MARKS
33-
@$$(call E, apply PaX markings: $$@)
32+
ifdef CFG_ENABLE_PAX_FLAGS
33+
@$$(call E, apply PaX flags: $$@)
3434
@"$(CFG_PAXCTL)" -cm "$$@"
3535
endif
3636

0 commit comments

Comments
 (0)