we have an application running as root daemon style process. This process is linking against and using a framework which contains a stripped down version of python. Functions within the framework might want to delete files via a python script.
Under 10.15 it was enough to give the as root running App Full Disk Access rights to the function within the framework so it was able to delete files.
Under macOS Big Sur this seems no longer be the case. Both, framework and app, are properly signed and not sandboxed. Are there any additional steps to be taken?
Frank Fenn
[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)
-> loads PyExec.framework via dlopen() also located in /Library/Frameworks
Code Block 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!
Frank