Move magic numbers into magic.h

Move various magic-number definitions into magic.h.

Signed-off-by: Nick Black <[email protected]>
Acked-by: Pekka Enberg <[email protected]>
Cc: Al Viro <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Casey Schaufler <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Nick Black 2009-09-22 16:43:33 -07:00 • committed by Linus Torvalds
commit 1fd7317d02
5 changed files with 9 additions and 14 deletions

View file

@ -30,17 +30,11 @@
#include <net/netlabel.h>
#include <net/cipso_ipv4.h>
#include <linux/audit.h>
#include <linux/magic.h>
#include "smack.h"
#define task_security(task) (task_cred_xxx((task), security))
/*
* I hope these are the hokeyist lines of code in the module. Casey.
*/
#define DEVPTS_SUPER_MAGIC 0x1cd1
#define SOCKFS_MAGIC 0x534F434B
#define TMPFS_MAGIC 0x01021994
/**
* smk_fetch - Fetch the smack label from a file.
* @ip: a pointer to the inode