Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 557956
Collapse All | Expand All

(-)a/testing/mozbase/mozinfo/mozinfo/mozinfo.py (-1 / +1 lines)
Lines 96-102 Link Here
96
    import errno
96
    import errno
97
    PR_SET_SECCOMP = 22
97
    PR_SET_SECCOMP = 22
98
    SECCOMP_MODE_FILTER = 2
98
    SECCOMP_MODE_FILTER = 2
99
    ctypes.CDLL("libc.so.6", use_errno=True).prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, 0)
99
    ctypes.CDLL(ctypes.util.find_library('c'), use_errno=True).prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, 0)
100
    info['has_sandbox'] = ctypes.get_errno() == errno.EFAULT
100
    info['has_sandbox'] = ctypes.get_errno() == errno.EFAULT
101
else:
101
else:
102
    info['has_sandbox'] = True
102
    info['has_sandbox'] = True

Return to bug 557956