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!
Topic:
App & System Services
SubTopic:
Networking
Tags: