System extension save log file

I've developed a system-extension custom VPN app for macOS. As expected, the containing app is running under 'user' permissions, and the system-extension is running under 'root' permissions.

The containing app and the sys-ext can create (and save) log files.

The containing app has a button to 'collect' the logs from both the containing app and from the extension. However, it can't really access to the extension's logs since it's under root/

What I'm doing is to ask the extension to send the logs via IPC, but what should I do if the VPN is not connected? In this case the extension is not running, and I can't get it's logs.

Is there another way to get the file, or maybe to write logs from the extension to somewhere directly accessible to the containing app?

Normally I’d do this by using XPC to talk to my NE sysex and have it pass back the log (either the data itself or a read-only file handle).

Share and Enjoy

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

System extension save log file
 
 
Q