diff options
author | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2010-07-01 15:07:43 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-08-02 01:34:57 -0400 |
commit | af4f136056c984b0aa67feed7d3170b958370b2f (patch) | |
tree | 30b62cd9174044cbdfdddc1fe5e0f21e7ddde85c /include/linux/xattr.h | |
parent | 5ad18a0d59ba9e65b3c8b2b489fd23bc6b3daf94 (diff) |
security: move LSM xattrnames to xattr.h
Make the security extended attributes names global. Updated to move
the remaining Smack xattrs.
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/linux/xattr.h')
-rw-r--r-- | include/linux/xattr.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/xattr.h b/include/linux/xattr.h index 0cfa1e9c4cc1..f1e5bde4b35a 100644 --- a/include/linux/xattr.h +++ b/include/linux/xattr.h | |||
@@ -33,6 +33,20 @@ | |||
33 | #define XATTR_USER_PREFIX "user." | 33 | #define XATTR_USER_PREFIX "user." |
34 | #define XATTR_USER_PREFIX_LEN (sizeof (XATTR_USER_PREFIX) - 1) | 34 | #define XATTR_USER_PREFIX_LEN (sizeof (XATTR_USER_PREFIX) - 1) |
35 | 35 | ||
36 | /* Security namespace */ | ||
37 | #define XATTR_SELINUX_SUFFIX "selinux" | ||
38 | #define XATTR_NAME_SELINUX XATTR_SECURITY_PREFIX XATTR_SELINUX_SUFFIX | ||
39 | |||
40 | #define XATTR_SMACK_SUFFIX "SMACK64" | ||
41 | #define XATTR_SMACK_IPIN "SMACK64IPIN" | ||
42 | #define XATTR_SMACK_IPOUT "SMACK64IPOUT" | ||
43 | #define XATTR_NAME_SMACK XATTR_SECURITY_PREFIX XATTR_SMACK_SUFFIX | ||
44 | #define XATTR_NAME_SMACKIPIN XATTR_SECURITY_PREFIX XATTR_SMACK_IPIN | ||
45 | #define XATTR_NAME_SMACKIPOUT XATTR_SECURITY_PREFIX XATTR_SMACK_IPOUT | ||
46 | |||
47 | #define XATTR_CAPS_SUFFIX "capability" | ||
48 | #define XATTR_NAME_CAPS XATTR_SECURITY_PREFIX XATTR_CAPS_SUFFIX | ||
49 | |||
36 | struct inode; | 50 | struct inode; |
37 | struct dentry; | 51 | struct dentry; |
38 | 52 | ||