Commit 76ef5df3 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Move XATTR_SECURITY_PREFIX macro to common location

From: Chris Wright <chrisw@osdl.org>

Move the XATTR_SECURITY_PREFIX macro to the xattr.h header so that it's in a
common location.

(Acked by Stephen Smalley)
parent 66a6ef19
......@@ -8,8 +8,6 @@
#include <linux/security.h>
#include "xattr.h"
#define XATTR_SECURITY_PREFIX "security."
static size_t
devpts_xattr_security_list(struct dentry *dentry, char *buffer)
{
......
......@@ -10,8 +10,6 @@
#include <linux/ext2_fs.h>
#include "xattr.h"
#define XATTR_SECURITY_PREFIX "security."
static size_t
ext2_xattr_security_list(char *list, struct inode *inode,
const char *name, int name_len)
......
......@@ -11,8 +11,6 @@
#include <linux/ext3_fs.h>
#include "xattr.h"
#define XATTR_SECURITY_PREFIX "security."
static size_t
ext3_xattr_security_list(char *list, struct inode *inode,
const char *name, int name_len)
......
......@@ -12,4 +12,6 @@
#define XATTR_CREATE 0x1 /* set value, fail if attr already exists */
#define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */
#define XATTR_SECURITY_PREFIX "security."
#endif /* _LINUX_XATTR_H */
......@@ -16,10 +16,6 @@
* as published by the Free Software Foundation.
*/
#define XATTR_SECURITY_PREFIX "security."
#define XATTR_SELINUX_SUFFIX "selinux"
#define XATTR_NAME_SELINUX XATTR_SECURITY_PREFIX XATTR_SELINUX_SUFFIX
#include <linux/config.h>
#include <linux/module.h>
#include <linux/init.h>
......@@ -65,6 +61,9 @@
#include "objsec.h"
#include "netif.h"
#define XATTR_SELINUX_SUFFIX "selinux"
#define XATTR_NAME_SELINUX XATTR_SECURITY_PREFIX XATTR_SELINUX_SUFFIX
#ifdef CONFIG_SECURITY_SELINUX_DEVELOP
int selinux_enforcing = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment