Lines Matching refs:status
18 * using mmap interface on /selinux/status.
22 * The selinux_kernel_status structure on the head of status page is
24 * application should reference the status page according to the seqlock
27 * Typically, application checks status->sequence at the head of access
28 * control routine. If it is odd-number, kernel is updating the status,
32 * In most cases, application shall confirm the kernel status is not
39 * It returns a reference to selinux_status_page. If the status page is
44 struct selinux_kernel_status *status;
52 status = page_address(selinux_state.status_page);
54 status->version = SELINUX_KERNEL_STATUS_VERSION;
55 status->sequence = 0;
56 status->enforcing = enforcing_enabled();
59 * a positive value on the status->policyload,
63 status->policyload = 0;
64 status->deny_unknown =
77 * It updates status of the current enforcing/permissive mode.
81 struct selinux_kernel_status *status;
85 status = page_address(selinux_state.status_page);
87 status->sequence++;
90 status->enforcing = enforcing ? 1 : 0;
93 status->sequence++;
101 * It updates status of the times of policy reloaded, and current
106 struct selinux_kernel_status *status;
110 status = page_address(selinux_state.status_page);
112 status->sequence++;
115 status->policyload = seqno;
116 status->deny_unknown = !security_get_allow_unknown();
119 status->sequence++;