aboutsummaryrefslogtreecommitdiff
path: root/security/selinux/include/conditional.h
AgeCommit message (Collapse)AuthorFilesLines
2018-03-01selinux: wrap global selinux stateStephen Smalley1-3/+8
Define a selinux state structure (struct selinux_state) for global SELinux state and pass it explicitly to all security server functions. The public portion of the structure contains state that is used throughout the SELinux code, such as the enforcing mode. The structure also contains a pointer to a selinux_ss structure whose definition is private to the security server and contains security server specific state such as the policy database and SID table. This change should have no effect on SELinux behavior or APIs (userspace or LSM). It merely wraps SELinux state and passes it explicitly as needed. Signed-off-by: Stephen Smalley <[email protected]> [PM: minor fixups needed due to collisions with the SCTP patches] Signed-off-by: Paul Moore <[email protected]>
2016-04-14selinux: Change bool variable name to index.Prarit Bhargava1-1/+1
security_get_bool_value(int bool) argument "bool" conflicts with in-kernel macros such as BUILD_BUG(). This patch changes this to index which isn't a type. Cc: Paul Moore <[email protected]> Cc: Stephen Smalley <[email protected]> Cc: Eric Paris <[email protected]> Cc: James Morris <[email protected]> Cc: "Serge E. Hallyn" <[email protected]> Cc: Rasmus Villemoes <[email protected]> Cc: Andrew Perepechko <[email protected]> Cc: Jeff Vander Stoep <[email protected]> Cc: [email protected] Cc: Eric Paris <[email protected]> Cc: Paul Moore <[email protected]> Cc: David Howells <[email protected]> Signed-off-by: Prarit Bhargava <[email protected]> Acked-by: David Howells <[email protected]> [PM: wrapped description for checkpatch.pl, use "selinux:..." as subj] Signed-off-by: Paul Moore <[email protected]>
2005-04-16Linux-2.6.12-rc2Linus Torvalds1-0/+22
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!