发明名称 METHOD AND SYSTEM FOR FACILITATING REPLACEMENT OF SYSTEM CALLS
摘要 An example method includes modifying, prior to run time, an executable file of an application to cause an operating system loader to load additional code using a dynamically-linked library. Modifying the executable file includes determining whether the executable file includes sufficient unused space to accommodate a load command, and adding the load command to the executable file when the executable file includes sufficient unused space by: shifting, in the executable file, an existing load command that does not contain dependency information to make space for the load command; or identifying unused space outside of a data portion of the executable file that can be removed to accommodate the load command. The additional code, when executed by a processor, causes the processor to change a pointer in a table that indicates an address of an imported function implementing a system call so the pointer indicates an address of a customized function.
申请公布号 US2015347109(A1) 申请公布日期 2015.12.03
申请号 US201514826588 申请日期 2015.08.14
申请人 VMware, Inc. 发明人 JAWA Manish;TEBEKA Haim;NEWELL Craig F.
分类号 G06F9/445;G06F9/54 主分类号 G06F9/445
代理机构 代理人
主权项 1. A method, comprising: modifying, prior to run time, an executable file of an application to cause an operating system loader to load additional code using a dynamically-linked library, wherein modifying the executable file comprises: determining whether the executable file includes sufficient unused space to accommodate a load command; andadding the load command to the executable file when the executable file includes sufficient unused space by: shifting, in the executable file, an existing load command that does not contain dependency information to make space for the load command; or identifying unused space outside of a data portion of the executable file that can be removed to accommodate the load command; wherein the additional code, when executed by a processor, causes the processor to change a pointer in a table that indicates an address of an imported function implementing a system call so that the pointer indicates an address of a customized function.
地址 Palo Alto CA US