diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-02 12:52:20 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-02 12:52:20 +0200 |
commit | 427a14cb8d80675dd8944701e9e3c5b5220a06fa (patch) | |
tree | 698952196b9970719a43933e93c5175905c1f3ac | |
parent | 3e048b396c0d32ffd6481c57c38579770d600101 (diff) | |
download | alpine-conf-427a14cb8d80675dd8944701e9e3c5b5220a06fa.zip |
setup-disk: remove grsec traces
we have nto supported grsec for a while. Remove everything about grsec
and PAX.
-rw-r--r-- | setup-disk.in | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/setup-disk.in b/setup-disk.in index 27d23c3..21d5288 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -263,16 +263,6 @@ find_pvs_in_vg() { pvs --noheadings | awk "\$2 == \"$vg\" {print \$1}" } -# echo current grsecurity option and set new -set_grsec() { - local key="$1" value="$2" - if ! [ -e /proc/sys/kernel/grsecurity/$key ]; then - return 0 - fi - cat /proc/sys/kernel/grsecurity/$key - echo $value > /proc/sys/kernel/grsecurity/$key -} - init_chroot_mounts() { local mnt="$1" i= for i in proc dev; do @@ -360,10 +350,6 @@ setup_syslinux() { -e "s:^default_kernel_opts=.*:default_kernel_opts=\"$kernel_opts\":" \ -e "s:^modules=.*:modules=$modules:" \ /etc/update-extlinux.conf > "$mnt"/etc/update-extlinux.conf - if [ "$(rc --sys)" = "XEN0" ]; then - sed -i -e "s:^default=.*:default=xen-grsec:" \ - "$mnt"/etc/update-extlinux.conf - fi # Check if we boot from raid so we can pass proper option to # extlinux later. @@ -605,9 +591,6 @@ install_mounted_root() { # generate update-extlinux.conf root=$(uuid_or_device $rootdev) kernel_opts="$kernel_opts rootfstype=$root_fs" - if is_vmware; then - kernel_opts="pax_nouderef $kernel_opts" - fi if [ -n "$(get_bootopt nomodeset)" ]; then kernel_opts="nomodeset $kernel_opts" fi @@ -663,13 +646,11 @@ install_mounted_root() { repoflags="$repoflags --repository $i" done - chroot_caps=$(set_grsec chroot_caps 0) init_chroot_mounts "$mnt" apk add --root "$mnt" $apkflags --overlay-from-stdin \ $repoflags $pkgs <$ovlfiles local ret=$? cleanup_chroot_mounts "$mnt" - set_grsec chroot_caps $chroot_caps > /dev/null return $ret } |