VirtualBox

Changeset 27877 in vbox


Ignore:
Timestamp:
Mar 31, 2010 10:29:46 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59562
Message:

linux/hardened: call prctl(PR_SET_DUMPABLE) to make VBox binaries dump ELF core files (if allowed by ulimit -c)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp

    r26498 r27877  
    635635        /* XXX cap_net_bind_service */
    636636        if (!cap_set_proc(cap_from_text("all-eip cap_net_raw+ep")))
    637             prctl(PR_SET_KEEPCAPS, /*keep=*/1, 0, 0, 0);
     637            prctl(PR_SET_KEEPCAPS, 1 /*keep=*/, 0, 0, 0);
     638        prctl(PR_SET_DUMPABLE, 1 /*dump*/, 0, 0, 0);
    638639#  else
    639640        cap_user_header_t hdr = (cap_user_header_t)alloca(sizeof(*hdr));
     
    645646        cap->permitted = g_uCaps;
    646647        if (!capset(hdr, cap))
    647             prctl(PR_SET_KEEPCAPS, /*keep=*/1, 0, 0, 0);
     648            prctl(PR_SET_KEEPCAPS, 1 /*keep*/, 0, 0, 0);
     649        prctl(PR_SET_DUMPABLE, 1 /*dump*/, 0, 0, 0);
    648650#  endif /* !USE_LIB_PCAP */
    649651    }
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