(self)
| 583 | |
| 584 | class CPUID(object): |
| 585 | def __init__(self): |
| 586 | # Figure out if SE Linux is on and in enforcing mode |
| 587 | self.is_selinux_enforcing = False |
| 588 | |
| 589 | # Just return if the SE Linux Status Tool is not installed |
| 590 | if not DataSource.has_sestatus(): |
| 591 | return |
| 592 | |
| 593 | # Figure out if we can execute heap and execute memory |
| 594 | can_selinux_exec_heap = DataSource.sestatus_allow_execheap() |
| 595 | can_selinux_exec_memory = DataSource.sestatus_allow_execmem() |
| 596 | self.is_selinux_enforcing = (not can_selinux_exec_heap or not can_selinux_exec_memory) |
| 597 | |
| 598 | def _asm_func(self, restype=None, argtypes=(), byte_code=[]): |
| 599 | byte_code = bytes.join(b'', byte_code) |
nothing calls this directly
no test coverage detected