diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2006-09-26 08:31:58 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-26 17:48:52 +0200 |
commit | 016b9bdb81d9c9c7800e4e224ade38d8b37669d3 (patch) | |
tree | 47335b123973d918a9686cd2647e5e314ed2c1dd /security/selinux/include/security.h | |
parent | [PATCH] selinux: replace ctxid with sid in selinux_audit_rule_match interface (diff) | |
download | linux-016b9bdb81d9c9c7800e4e224ade38d8b37669d3.tar.xz linux-016b9bdb81d9c9c7800e4e224ade38d8b37669d3.zip |
[PATCH] selinux: enable configuration of max policy version
Enable configuration of SELinux maximum supported policy version to support
legacy userland (init) that does not gracefully handle kernels that support
newer policy versions two or more beyond the installed policy, as in FC3
and FC4.
[bunk@stusta.de: improve Kconfig help text]
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r-- | security/selinux/include/security.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h index 911954a692fa..aa21ca1721af 100644 --- a/security/selinux/include/security.h +++ b/security/selinux/include/security.h @@ -27,7 +27,11 @@ /* Range of policy versions we understand*/ #define POLICYDB_VERSION_MIN POLICYDB_VERSION_BASE -#define POLICYDB_VERSION_MAX POLICYDB_VERSION_AVTAB +#ifdef CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX +#define POLICYDB_VERSION_MAX CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX_VALUE +#else +#define POLICYDB_VERSION_MAX POLICYDB_VERSION_AVTAB +#endif extern int selinux_enabled; extern int selinux_mls_enabled; |