summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorShan Wei <shanwei@cn.fujitsu.com>2011-02-09 19:58:11 -0800
committerCasey Schaufler <casey@schaufler-ca.com>2011-02-09 19:58:11 -0800
commitdb904aa8147440b750a35d58befed38155a1abb9 (patch)
treefaaeea888a0ff5ca9c1e935bda15914a551458a2 /security
parent0e0a070d3a47d279de66e08244769556deae2eee (diff)
downloadop-kernel-dev-db904aa8147440b750a35d58befed38155a1abb9.zip
op-kernel-dev-db904aa8147440b750a35d58befed38155a1abb9.tar.gz
security:smack: kill unused SMACK_LIST_MAX, MAY_ANY and MAY_ANYWRITE
Kill unused macros of SMACK_LIST_MAX, MAY_ANY and MAY_ANYWRITE. v2: As Casey Schaufler's advice, also remove MAY_ANY. Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security')
-rw-r--r--security/smack/smack.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/security/smack/smack.h b/security/smack/smack.h
index e365d45..b449cfd 100644
--- a/security/smack/smack.h
+++ b/security/smack/smack.h
@@ -155,12 +155,6 @@ struct smack_known {
#define SMACK_MAGIC 0x43415d53 /* "SMAC" */
/*
- * A limit on the number of entries in the lists
- * makes some of the list administration easier.
- */
-#define SMACK_LIST_MAX 10000
-
-/*
* CIPSO defaults.
*/
#define SMACK_CIPSO_DOI_DEFAULT 3 /* Historical */
@@ -177,9 +171,7 @@ struct smack_known {
/*
* Just to make the common cases easier to deal with
*/
-#define MAY_ANY (MAY_READ | MAY_WRITE | MAY_APPEND | MAY_EXEC)
#define MAY_ANYREAD (MAY_READ | MAY_EXEC)
-#define MAY_ANYWRITE (MAY_WRITE | MAY_APPEND)
#define MAY_READWRITE (MAY_READ | MAY_WRITE)
#define MAY_NOT 0
OpenPOWER on IntegriCloud