summaryrefslogtreecommitdiffstats
path: root/security/integrity
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-06-12 20:56:01 +0200
committerJames Morris <jmorris@namei.org>2010-08-02 07:35:04 +0200
commit338437f6a09861cdf76e1396ed5fa6dee9c7cabe (patch)
treee693392adf370b81af129b326bba45bf43f03862 /security/integrity
parentselinux: fix error codes in cond_policydb_init() (diff)
downloadlinux-338437f6a09861cdf76e1396ed5fa6dee9c7cabe.tar.xz
linux-338437f6a09861cdf76e1396ed5fa6dee9c7cabe.zip
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>
Diffstat (limited to 'security/integrity')
0 files changed, 0 insertions, 0 deletions