Elevating Application Privileges at Runtime