Daniel P. Berrangé 598641f460 tests: don't abort in fopen(/proc/mounts)
The mock fopen() function will abort if "/proc/mounts" is
requested with "r" permissions and VIR_CGROUP_MOCK_FILENAME
env var is not set.

Unfortunately this is triggering by the libselinux library
constructor when it tries to read /proc/mounts to find out
if selinuxfs is mounted in an unusual place.

This, however, only affects libselinux in Debian as that
opens with "r", while in Fedora / RHEL it opens "re" and
thus luckily never triggered the abort(), instead getting
an EACCESS.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-27 16:11:34 +00:00
..
2019-03-05 14:47:49 +01:00
2018-12-17 17:52:46 +01:00
2018-12-17 17:52:46 +01:00
2019-02-26 11:41:18 +01:00
2019-02-26 11:41:18 +01:00
2019-03-18 11:14:37 +03:00
2019-02-12 10:14:53 +01:00