]> bbs.cooldavid.org Git - net-next-2.6.git/commit
selinux: propagate error codes in cond_read_list()
authorDan Carpenter <error27@gmail.com>
Sat, 12 Jun 2010 18:51:40 +0000 (20:51 +0200)
committerJames Morris <jmorris@namei.org>
Mon, 2 Aug 2010 05:35:01 +0000 (15:35 +1000)
commit5241c1074f6e2f2276d45d857eb5d19fbdc2e4b2
treecf41e959668f5a9ec7a5d75059df864133569c91
parent9e0bd4cba4460bff64fb07cfb07849cdfd4d325a
selinux: propagate error codes in cond_read_list()

These are passed back when the security module gets loaded.

The original code always returned -1 (-EPERM) on error but after this
patch it can return -EINVAL, or -ENOMEM or propagate the error code from
cond_read_node().  cond_read_node() still returns -1 all the time, but I
fix that in a later patch.

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>
security/selinux/ss/conditional.c