Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libselinux: only mount /proc if necessary
Commit 9df4988 ("libselinux: Mount procfs before checking /proc/filesystems") changed selinuxfs_exists() to always try mounting /proc before reading /proc/filesystems. However, this is unnecessary if /proc is already mounted and can produce avc denials if the process is not allowed to perform the mount. Check first to see if /proc is already present and only try the mount if it is not. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
- Loading branch information