• D
    tests: don't abort in fopen(/proc/mounts) · 598641f4
    Daniel P. Berrangé 提交于
    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: NDaniel P. Berrangé <berrange@redhat.com>
    598641f4
vircgroupmock.c 20.5 KB