RE: Unexpected behavior using msleep in a KAUTH_SCOPE_VNODE handler
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pcpitstop.com; s=google; h=from:to:subject:thread-topic:thread-index:date:message-id :accept-language:content-language:mime-version; bh=5Yo9lyw030lUHw+0JIXEKspxPOZP/xTRfu1rL1aOCQc=; b=SzXlJSBtrW/jd39kXWfcP5m9nQ8IKjdinOJJrlB9rvTSfDUrFkqbdg0TJDeeusPi91 XF0e8x0gCIQL4VzJcjlvbdFobFSWIxMJw0xjd9ZTV93GoAjwO2XZMfEVfzJY5WvK5SdY wVxFoK8PSjiaqMcT24O+c3ouyRoxHfNw3UnU0= Thread-index: AQHUv8acwyXpnDJ9Fk+l3O7G3TGsEA== 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Matt Riley