Not solved, accidentally clicked..
Hello, here's a brief outline of the architecture in use.
[daemon app] running as root with Full Disk Access enabled.
> is linked against PyHelper.framework located in /Library/Frameworks
> calls PythonHelper() (passes python byte code)
[PythonHelper() function]
> loads PyExec.framework via dlopen() also located in /Library/Frameworks
PyExec.framework has a customized version of Python located in Version/Current/Frameworks/Python.framework> gets PythonExec() function via dlsym() which finally causes the embedded Python framework to execute the byte code
> file deletions at this level fails!
No new process is created! Frameworks and calling daemon app have the same code signing and team ID. This architecture works on 10.15 but breaks on Big Sur. I've tried even with SIP disabled which does not result in a different outcome.
Topic:
Code Signing
SubTopic:
Entitlements
Tags: