RE: Unexpected behavior using msleep in a KAUTH_SCOPE_VNODE handler
RE: Unexpected behavior using msleep in a KAUTH_SCOPE_VNODE handler
- Subject: RE: Unexpected behavior using msleep in a KAUTH_SCOPE_VNODE handler
- From: Matt Riley <email@hidden>
- Date: Fri, 08 Feb 2019 15:54:45 +0000
- Thread-topic: Unexpected behavior using msleep in a KAUTH_SCOPE_VNODE handler
I do not think my previous question was clear.
I have created a minimal change to the KauthORama.c sample code is
https://pastebin.com/sWddwSp4
The only line added to KauthORama.c was on line 476 and looks like this:
if ((action & KAUTH_VNODE_EXECUTE) && strcmp(vpPath,
"/Applications/Chess.app/Contents/MacOS/Chess")==0) IOSleep(20000); //ONLY
CHANGE.
I also had to add com.apple.kip.iokit to the OSBundleLibraries
In this video (https://youtu.be/mwFDIPHcMUo), you can see the behavior clearly.
When I launch /Applications/Chess.app/Contents/MacOS/Chess at about 31 seconds
into the video - from ~31 seconds to ~51 seconds the terminal output is frozen,
safari bounces on the task bar, but the Mail app launches correctly during this
time.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden