Post

Replies

Boosts

Views

Activity

Reply to Local Network Permissions - launchd service running as non-root user
To add on to what Valkhes says above, it's also recommend in the very document you linked under Daemon Security Considerations: Try to avoid running your daemon with elevated privileges (for example, running it as root). If your daemon must run with elevated privileges, do not trust data received from non-privileged processes. Doing so might allow a local user to escalate their privileges. The feedback assistant ticket number is 16838140 I see reference to a SessionCreate key in there for controlling the security context, is that useful in this situation? Thanks!
Mar ’25
Reply to Local Network Permissions - launchd service running as non-root user
To add on to what Valkhes says above, it's also recommend in the very document you linked under Daemon Security Considerations: Try to avoid running your daemon with elevated privileges (for example, running it as root). If your daemon must run with elevated privileges, do not trust data received from non-privileged processes. Doing so might allow a local user to escalate their privileges. The feedback assistant ticket number is 16838140 I see reference to a SessionCreate key in there for controlling the security context, is that useful in this situation? Thanks!
Replies
Boosts
Views
Activity
Mar ’25
Reply to Local Network Permissions - launchd service running as non-root user
I have not found a way to get this to work at all. I think its pretty clear at this point this is a bug and this whole local network permission speedbump didn't account for all cases where it would be required I have a ticket open with Apple in Feedback assistant. Hopefully i get more info from them because its gone cold here.
Replies
Boosts
Views
Activity
Mar ’25
Reply to Local Network Permissions - launchd service running as non-root user
Any thoughts about this scenario? Thanks
Replies
Boosts
Views
Activity
Jan ’25
Reply to Local Network Permissions - launchd service running as non-root user
It is a real user
Replies
Boosts
Views
Activity
Jan ’25
Reply to Local Network Permissions - launchd service running as non-root user
I am doing the first option of putting the launchd property list in /Library/LaunchDaemons and then configure the user via the UserName property in that property list. This plist calls a shell script which starts up the java process with proper arguments.
Replies
Boosts
Views
Activity
Jan ’25
Reply to Local Network Privacy pop-up on macos Sequoia for CLI Tools Invoked by Launchd Daemon
Sorry to revive this thread, but what about the situation where you are running a launchd daemon under a user other than root?
Replies
Boosts
Views
Activity
Jan ’25