VirtualBox

Changeset 47863 in vbox for trunk/src/VBox/NetworkServices


Ignore:
Timestamp:
Aug 20, 2013 3:44:39 AM (11 years ago)
Author:
vboxsync
Message:

vbox-nat-netservice: hardened build fix.

Location:
trunk/src/VBox/NetworkServices/NAT
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/Makefile.kmk

    r47692 r47863  
    6767ifdef VBOX_WITH_LWIP_NAT
    6868
     69ifdef VBOX_WITH_HARDENING
     70 PROGRAMS += VBoxNetLwipNATHardened
     71 DLLS += VBoxNetLwipNAT
     72else
     73 PROGRAMS += VBoxNetLwipNAT
     74endif
     75
     76ifdef VBOX_WITH_HARDENING
     77 VBoxNetLwipNATHardened_SOURCES += VBoxNetNATHardened.cpp
     78 VBoxNetLwipNATHardened_DEFS += SERVICE_NAME=VBoxNetLwipNAT
     79 VBoxNetLwipNATHardened_TEMPLATE=VBOXR3EXE
     80endif
     81
    6982PROGRAMS += VBoxNetLwipNAT
    7083VBoxNetLwipNAT_TEMPLATE =
    71 VBoxNetLwipNAT_TEMPLATE := VBOXMAINCLIENTEXE
     84VBoxNetLwipNAT_TEMPLATE := VBOXMAINCLIENT$(if-expr defined(VBOX_WITH_HARDENING),DLL,EXE)
    7285VBoxNetLwipNAT_INCS += ../../Devices/Network \
    7386        ../../Devices/Network/lwip-new/vbox # testproxy.h
  • trunk/src/VBox/NetworkServices/NAT/VBoxNetNATHardened.cpp

    r44529 r47863  
    1818#include <VBox/sup.h>
    1919
     20#ifndef SERVICE_NAME
     21# error "Please define SERVICE_NAME"
     22#endif
    2023
    2124int main(int argc, char **argv, char **envp)
    2225{
    23     return SUPR3HardenedMain("VBoxNetNAT", 0 /* fFlags */, argc, argv, envp);
     26    return SUPR3HardenedMain(RT_STR(SERVICE_NAME), 0 /* fFlags */, argc, argv, envp);
    2427}
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