URL:
https://github.com/freeipa/freeipa/pull/5132
Author: tiran
Title: #5132: Delay import of psutil to avoid AVC
Action: opened
PR body:
"""
Commit cfad7af35dd5a2cdd4081d1e9ac7c245f47f1dce added a check to ensure a
system has sufficient amount of memory. The feature uses psutil to get
available memory. On import psutil opens files in /proc which can result in
an SELinux violations and Python exception.
PermissionError: [Errno 13] Permission denied: '/proc/stat'
Fixes:
https://pagure.io/freeipa/issue/8512
Signed-off-by: Christian Heimes <cheimes(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5132/head:pr5132
git checkout pr5132