Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

blackdew

macrumors newbie
Original poster
Apr 29, 2011
1
0
Hello, every one!
I am writing a file hook driver(kext) for virus scan, I need delete some vnode files in the kext source code. But I can not find some api that the kernel has provided. I checked the "/System/Library/Extensions/System.kext/PlugIns/BSDKernel.kext" with "nm" command, and tried several suspicious api but failed. I also tried "vnop_remove" and but not load the driver because this symbol can not be found.
Does anyone know something about this? Or have some other ways to delete file in kernel?

Thanks a lot~
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.