]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
SELinux: return EOPNOTSUPP not ENOTSUPP
authorEric Paris <eparis@redhat.com>
Fri, 16 Nov 2007 21:35:56 +0000 (16:35 -0500)
committerJames Morris <jmorris@namei.org>
Fri, 16 Nov 2007 23:38:16 +0000 (10:38 +1100)
commitec418781708f89ef6eb8eb5ef1eeb79a6bec9d69
treefc97d5f06c6fae791590acd7c1445e30348bb9c3
parent8c0863403f109a43d7000b4646da4818220d501f
SELinux: return EOPNOTSUPP not ENOTSUPP

ENOTSUPP is not a valid error code in the kernel (it is defined in some
NFS internal error codes and has been improperly used other places).  In
the !CONFIG_SECURITY_SELINUX case though it is possible that we could
return this from selinux_audit_rule_init().  This patch just returns the
userspace valid EOPNOTSUPP.

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