VirtualBox

Changeset 78444 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 8, 2019 7:44:36 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130445
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.)

Location:
trunk/src/VBox/HostDrivers
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk

    r76553 r78444  
    176176        $(QUIET)$(RM) -f -- $@
    177177 ifndef VBOX_WITH_HARDENING
    178         $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
     178        $(QUIET)$(SED) -e "s;VBOX_WITH_HARDENING;;g" --output $@ $<
    179179 else
    180180        $(QUIET)$(CP) -f $< $@
     
    208208        $(QUIET)$(RM) -f -- $@
    209209 ifndef VBOX_WITH_HARDENING
    210         $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
     210        $(QUIET)$(SED) -e "s;VBOX_WITH_HARDENING;;g" --output $@ $<
    211211 else
    212212        $(QUIET)$(CP) -f $< $@
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk

    r76553 r78444  
    526526        $(QUIET)$(RM) -f -- $@
    527527 ifndef VBOX_WITH_HARDENING
    528         $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
     528        $(QUIET)$(SED) -e "s;VBOX_WITH_HARDENING;;g" --output $@ $<
    529529 else
    530530        $(QUIET)$(CP) -f $< $@
     
    566566        $(QUIET)$(CP) -f $< $@
    567567 ifndef VBOX_WITH_HARDENING
    568         $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output [email protected] $@
     568        $(QUIET)$(SED) -e "s;VBOX_WITH_HARDENING;;g" --output [email protected] $@
    569569        ${QUIET}$(MV) -f [email protected] $@
    570570 endif
  • trunk/src/VBox/HostDrivers/VBoxPci/Makefile.kmk

    r76553 r78444  
    6868        $(QUIET)$(RM) -f -- $@
    6969 ifndef VBOX_WITH_HARDENING
    70         $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
     70        $(QUIET)$(SED) -e "s;VBOX_WITH_HARDENING;;g" --output $@ $<
    7171 else
    7272        $(QUIET)$(CP) -f $< $@
  • 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.

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