Local Network permission prompt for daemon on macOS 15

Hi Team,

OS is prompting for local network permission for our application which runs as root level daemon.

As per the our analysis, it looks like it is prompting from our own library which is trying to get network info ' using /usr/sbin/system_profiler with "-xml -detailLevel basic SPNetworkDataType" and then trying to iterate to find DNS.ServerAddresses for each item. Then using [NSHost hostWithAddress:IPAddress];(When this library is not linked to the app then there is no prompt, so most likely this is the code that is resulting in the prompt).

Is this expected ? . Is there any other way that we can get DNS host name without being prompted for local network permission on mac OS 15

Answered by DTS Engineer in 812072022

We believe this is fixed in macOS 15.1. Please try it out there and let us know otherwise.

Oh, and we just published TN3179 Understanding local network privacy, full of detailed info about local network privacy.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

@DTS Engineer Thanks for the overview but I am in a dead end situation, I just finished reading TN3179 but I still don't know what to do when a user reports that my app is saying that it needs location network permission enabled even though they already enabled that (macOS). If it's difficult for developers (and in this case actually not possible) to reset this permission, for the end user is impossible, so this means I have to tell my end user it is "an Apple bug" once again.

Any alternatives to provide?

Context: I work on Home Assistant App, a smart home platform which connects locally to their smart home server. The Apps essentially needs the local network permission and every single user gives the permission, but some in macOS 15.3 are reporting that even though the permission is given, the app still reports it is not, and logs also confirm that.

This thread is about daemons specifically [1]. If you’re working on an app then I recommend that you start a new thread with the details. Use the same topic area and tags as this thread; that way I’ll see it go by.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

on 15.1 the popup is not seen

Local Network permission prompt for daemon on macOS 15
 
 
Q