diff options
author | Dan Carpenter <error27@gmail.com> | 2010-06-12 20:53:46 +0200 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-08-02 15:35:02 +1000 |
commit | fc5c126e4733e6fb3080d3d822ca63226e74fc84 (patch) | |
tree | 3320c22b66107c984ac0cf07c365420df42a4977 /arch | |
parent | 9d623b17a740d5a85c12108cdc71c64fb15484fc (diff) |
selinux: fix error codes in cond_read_node()
Originally cond_read_node() returned -1 (-EPERM) on errors which was
incorrect. Now it either propagates the error codes from lower level
functions next_entry() or cond_read_av_list() or it returns -ENOMEM or
-EINVAL.
next_entry() returns -EINVAL.
cond_read_av_list() returns -EINVAL 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 'arch')
0 files changed, 0 insertions, 0 deletions