secmark: make secmark object handling generic
authorEric Paris <eparis@redhat.com>
Wed, 13 Oct 2010 20:24:41 +0000 (16:24 -0400)
committerJames Morris <jmorris@namei.org>
Wed, 20 Oct 2010 23:12:48 +0000 (10:12 +1100)
commit91b93a832db683e46f352a6a8dca39026fa1027a
treef79becd7010a2da1a765829fce0e09327cd50531
parentdc04d01948e688c029184991f96d0856647bfbe2
secmark: make secmark object handling generic

Right now secmark has lots of direct selinux calls.  Use all LSM calls and
remove all SELinux specific knowledge.  The only SELinux specific knowledge
we leave is the mode.  The only point is to make sure that other LSMs at
least test this generic code before they assume it works.  (They may also
have to make changes if they do not represent labels as strings)

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Paul Moore <paul.moore@hp.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/netfilter/xt_SECMARK.h
include/linux/security.h
include/linux/selinux.h
net/netfilter/xt_CT.c
net/netfilter/xt_SECMARK.c
security/capability.c
security/security.c
security/selinux/exports.c
security/selinux/hooks.c
security/selinux/include/security.h