VirtualBox

Changeset 78444 in vbox for trunk/src/VBox/HostDrivers/linux


Ignore:
Timestamp:
May 8, 2019 7:44:36 AM (6 years ago)
Author:
vboxsync
Message:

Installers/Linux: fixes after previous refactoring for generated Make files.
ticketref:18621:Failure to disable hardening in Linux kernel modules.
Refactoring changes to generated Make file templates for Linux kernel modules
removed -D prefixes in front of macros to be defined in Make variables. The
generation code used sed to search for -Dvariable to remove certain variables
and this no longer worked after the refactoring. This change fixes that.
Thank you Ambroz Bizjak for the patch. (Extended to cover more places.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/linux/export_modules.sh

    r76553 r78444  
    155155done
    156156if [ -n "$VBOX_WITH_HARDENING" ]; then
    157     sed -e "s;-DVBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV;;g" \
    158         -e "s;-DIPRT_WITH_EFLAGS_AC_PRESERVING;;g" \
     157    sed -e "s;VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV;;g" \
     158        -e "s;IPRT_WITH_EFLAGS_AC_PRESERVING;;g" \
    159159        < $PATH_VBOXDRV/linux/Makefile > $PATH_TMP/vboxdrv/Makefile
    160160else
    161     sed -e "s;-DVBOX_WITH_HARDENING;;g" \
    162         -e "s;-DVBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV;;g" \
    163         -e "s;-DIPRT_WITH_EFLAGS_AC_PRESERVING;;g" \
     161    sed -e "s;VBOX_WITH_HARDENING;;g" \
     162        -e "s;VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV;;g" \
     163        -e "s;IPRT_WITH_EFLAGS_AC_PRESERVING;;g" \
    164164        < $PATH_VBOXDRV/linux/Makefile > $PATH_TMP/vboxdrv/Makefile
    165165fi
     
    173173    cat                                   $PATH_VBOXNET/linux/Makefile > $PATH_TMP/vboxnetflt/Makefile
    174174else
    175     sed -e "s;-DVBOX_WITH_HARDENING;;g" < $PATH_VBOXNET/linux/Makefile > $PATH_TMP/vboxnetflt/Makefile
     175    sed -e "s;VBOX_WITH_HARDENING;;g" < $PATH_VBOXNET/linux/Makefile > $PATH_TMP/vboxnetflt/Makefile
    176176fi
    177177
     
    184184    cat                                   $PATH_VBOXADP/linux/Makefile > $PATH_TMP/vboxnetadp/Makefile
    185185else
    186     sed -e "s;-DVBOX_WITH_HARDENING;;g" < $PATH_VBOXADP/linux/Makefile > $PATH_TMP/vboxnetadp/Makefile
     186    sed -e "s;VBOX_WITH_HARDENING;;g" < $PATH_VBOXADP/linux/Makefile > $PATH_TMP/vboxnetadp/Makefile
    187187fi
    188188
     
    195195    cat                                   $PATH_VBOXPCI/linux/Makefile > $PATH_TMP/vboxpci/Makefile
    196196else
    197     sed -e "s;-DVBOX_WITH_HARDENING;;g" < $PATH_VBOXPCI/linux/Makefile > $PATH_TMP/vboxpci/Makefile
     197    sed -e "s;VBOX_WITH_HARDENING;;g" < $PATH_VBOXPCI/linux/Makefile > $PATH_TMP/vboxpci/Makefile
    198198fi
    199199
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette