From 6bd22523ad9ebb2d21b308d4f736b3b2a247c05c Mon Sep 17 00:00:00 2001 From: Isaac True Date: Mon, 11 Sep 2023 12:24:45 +0200 Subject: [PATCH] ERL-378: nemos-images: *: *: set sysctl kernel.randomize_va_space=2 This enables all kernel address space randomisation features. Signed-off-by: Isaac True --- .../qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + .../s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf | 1 + 12 files changed, 12 insertions(+) create mode 100644 nemos-images-minimal-lunar/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-minimal-lunar/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-minimal-lunar/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-minimal-mantic/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-minimal-mantic/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-minimal-mantic/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-reference-lunar/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-reference-lunar/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-reference-lunar/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-reference-mantic/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-reference-mantic/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf create mode 100644 nemos-images-reference-mantic/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf diff --git a/nemos-images-minimal-lunar/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-minimal-lunar/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-minimal-lunar/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-minimal-lunar/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-minimal-lunar/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-minimal-lunar/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-minimal-lunar/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-minimal-lunar/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-minimal-lunar/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-minimal-mantic/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-minimal-mantic/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-minimal-mantic/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-minimal-mantic/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-minimal-mantic/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-minimal-mantic/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-minimal-mantic/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-minimal-mantic/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-minimal-mantic/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-reference-lunar/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-reference-lunar/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-reference-lunar/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-reference-lunar/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-reference-lunar/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-reference-lunar/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-reference-lunar/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-reference-lunar/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-reference-lunar/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-reference-mantic/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-reference-mantic/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-reference-mantic/qemu-amd64/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-reference-mantic/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-reference-mantic/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-reference-mantic/qemu-arm64/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2 diff --git a/nemos-images-reference-mantic/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf b/nemos-images-reference-mantic/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf new file mode 100644 index 0000000..2be8d37 --- /dev/null +++ b/nemos-images-reference-mantic/s32g274ardb2/root/etc/sysctl.d/50-randomize-va-space.conf @@ -0,0 +1 @@ +kernel.randomize_va_space=2