mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
Right now secmark has lots of direct selinux calls. Use all LSM calls and remove all SELinux specific knowledge. The only SELinux specific knowledge we leave is the mode. The only point is to make sure that other LSMs at least test this generic code before they assume it works. (They may also have to make changes if they do not represent labels as strings) Signed-off-by: Eric Paris <[email protected]> Acked-by: Paul Moore <[email protected]> Acked-by: Patrick McHardy <[email protected]> Signed-off-by: James Morris <[email protected]>
36 lines
910 B
C
36 lines
910 B
C
/*
|
|
* SELinux services exported to the rest of the kernel.
|
|
*
|
|
* Author: James Morris <[email protected]>
|
|
*
|
|
* Copyright (C) 2005 Red Hat, Inc., James Morris <[email protected]>
|
|
* Copyright (C) 2006 Trusted Computer Solutions, Inc. <[email protected]>
|
|
* Copyright (C) 2006 IBM Corporation, Timothy R. Chavez <[email protected]>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*/
|
|
#ifndef _LINUX_SELINUX_H
|
|
#define _LINUX_SELINUX_H
|
|
|
|
struct selinux_audit_rule;
|
|
struct audit_context;
|
|
struct kern_ipc_perm;
|
|
|
|
#ifdef CONFIG_SECURITY_SELINUX
|
|
|
|
/**
|
|
* selinux_is_enabled - is SELinux enabled?
|
|
*/
|
|
bool selinux_is_enabled(void);
|
|
#else
|
|
|
|
static inline bool selinux_is_enabled(void)
|
|
{
|
|
return false;
|
|
}
|
|
#endif /* CONFIG_SECURITY_SELINUX */
|
|
|
|
#endif /* _LINUX_SELINUX_H */
|