Creds: creds->security can be NULL is selinux is disabled
authorEric Paris <eparis@redhat.com>
Sun, 13 Sep 2009 02:54:10 +0000 (22:54 -0400)
committerJames Morris <jmorris@namei.org>
Mon, 14 Sep 2009 02:34:07 +0000 (12:34 +1000)
commited868a56988464cd31de0302426a5e94d3127f10
treecdcd1715445aa19051b6a9a671b39250a449333a
parent86d710146fb9975f04c505ec78caa43d227c1018
Creds: creds->security can be NULL is selinux is disabled

__validate_process_creds should check if selinux is actually enabled before
running tests on the selinux portion of the credentials struct.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/cred.h
include/linux/selinux.h
security/selinux/exports.c