linux/security/selinux
Dan Carpenter 338437f6a0 selinux: fix error codes in cond_read_bool()
The original code always returned -1 (-EPERM) on error.  The new code
returns either -ENOMEM, or -EINVAL or it propagates the error codes from
lower level functions next_entry() or hashtab_insert().

next_entry() returns -EINVAL.
hashtab_insert() returns -EINVAL, -EEXIST, or -ENOMEM.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by:  Stephen D. Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
2010-08-02 15:35:04 +10:00
..
include switch selinux delayed superblock handling to iterate_supers() 2010-05-21 18:31:17 -04:00
ss selinux: fix error codes in cond_read_bool() 2010-08-02 15:35:04 +10:00
.gitignore
avc.c selinux: remove all rcu head initializations 2010-08-02 15:33:35 +10:00
exports.c
hooks.c security: move LSM xattrnames to xattr.h 2010-08-02 15:34:57 +10:00
Kconfig
Makefile
netif.c
netlabel.c Merge branch 'master' into next 2010-05-06 10:56:07 +10:00
netlink.c Merge branch 'master' into next 2010-05-06 10:56:07 +10:00
netnode.c selinux: remove all rcu head initializations 2010-08-02 15:33:35 +10:00
netport.c
nlmsgtab.c
selinuxfs.c selinux: use generic_file_llseek 2010-08-02 15:34:59 +10:00
xfrm.c