3098b67 Don't create log files from help scripts

9 files Authored by cheimes 4 years ago, Committed by rcritten 4 years ago,
    Don't create log files from help scripts
    
    Helper scripts now use api.bootstrap(log=None) to avoid the creation of
    log files. Helper scripts are typically executed from daemons which
    perform their own logging. The helpers still log to stderr/stdout.
    
    This also gets rid of some SELinux AVCs when the script tries to write
    to /root/.ipa/.
    
    Fixes: https://pagure.io/freeipa/issue/8075
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>