Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vienna requests access to local network devices in macOS 15 #1817

Open
Eitot opened this issue Sep 17, 2024 · 1 comment
Open

Vienna requests access to local network devices in macOS 15 #1817

Eitot opened this issue Sep 17, 2024 · 1 comment

Comments

@Eitot
Copy link
Contributor

Eitot commented Sep 17, 2024

When I woke up my MacBook I was greeted with this prompt:
Scherm­afbeelding 2024-09-17 om 14 52 09

Vienna was running in the background. This is what the message would look like in English:
Scherm­afbeelding 2024-09-17 om 15 24 16

Apple added this prompt in macOS 15 (https://developer.apple.com/wwdc24/10123) and it is caused by system API that request any of these permissions:
Scherm­afbeelding 2024-09-17 om 15 27 11

I suspect that the NSHost class and maybe SCNetworkReachability functions are involved, e.g.

-(void)handleDidWake:(NSNotification *)nc
{
NSString * currentAddress = [NSHost currentHost].address;
if (![currentAddress isEqualToString:self.riskyIPAddress]) {
// we might have moved to a new network
// so, at the next occurence we should test if we can safely handle
// 301 redirects
self.redirect301Status = HTTP301Unknown;
[self.unsafe301RedirectionTimer invalidate];
self.unsafe301RedirectionTimer = nil;
}
}

@Eitot
Copy link
Contributor Author

Eitot commented Nov 4, 2024

@barijaona I was looking into this a bit more and checked out the above-mentioned use of NSHost. I checked the result of address numerous times and it seems to always return the address 127.0.0.1 on my MacBook, regardless whether I am connected to my local router via Wi-Fi, connected to my iPhone via LTE (hotspot) or connected to a VPN. Vienna stores the value of address and compares it to the current value when the computer wakes from sleep, but I am not sure what result is expected here.

Is this working as intended?

NSHost has also been declared deprecated (since the macOS 12 SDK it seems). I wonder if the Network framework and specifically nw_path_monitor_* might a substitute to listen for network changes more effectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant