SELinux: return error codes on policy load failure
authorEric Paris <eparis@redhat.com>
Tue, 20 Apr 2010 14:29:42 +0000 (10:29 -0400)
committerJames Morris <jmorris@namei.org>
Tue, 20 Apr 2010 22:58:49 +0000 (08:58 +1000)
policy load failure always return EINVAL even if the failure was for some
other reason (usually ENOMEM).  This patch passes error codes back up the
stack where they will make their way to userspace.  This might help in
debugging future problems with policy load.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found