2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

make: Disable stack executable bit

Otherwise crtools built with stack executable, in result
kernel sets up

	current->personality |= READ_IMPLIES_EXEC;

when our crtools get loaded into memory and mmap
calls in restorer create VMAs with EXEC bit set.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2012-07-20 19:39:25 +04:00 committed by Pavel Emelyanov
parent b0ea7a1a6b
commit e6167b5aa6
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ DEPS += $(patsubst %.o,%.d,$(POBJS))
DEPS += $(patsubst %.o,%.d,$(ROBJS)) DEPS += $(patsubst %.o,%.d,$(ROBJS))
PIELDS := pie.lds.S PIELDS := pie.lds.S
PIEFLAGS := -fpie PIEFLAGS := -fpie -Wa,--noexecstack
ASMFLAGS := -D__ASSEMBLY__ ASMFLAGS := -D__ASSEMBLY__
$(PASM-OBJS): $(PASM-SRC) $(SYS-OBJ) $(PASM-OBJS): $(PASM-SRC) $(SYS-OBJ)

View File

@ -10,7 +10,7 @@ SYS-GEN := syscalls-x86-64.sh
SYS-OBJ := $(patsubst %.S,%.o,$(SYS-ASM)) SYS-OBJ := $(patsubst %.S,%.o,$(SYS-ASM))
SYS-FLAGS := -fpie -Wstrict-prototypes -D__ASSEMBLY__ -nostdlib -fomit-frame-pointer SYS-FLAGS := -fpie -Wstrict-prototypes -Wa,--noexecstack -D__ASSEMBLY__ -nostdlib -fomit-frame-pointer
$(SYS-ASM): $(SYS-GEN) $(SYS-DEF) $(SYS-ASM-COMMON) $(SYS-TYPES) $(SYS-ASM): $(SYS-GEN) $(SYS-DEF) $(SYS-ASM-COMMON) $(SYS-TYPES)
$(E) " GEN " $@ $(E) " GEN " $@