commit | 5c84f24a175b92e12925799c9d9ec2bc490573b6 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Wed May 17 22:51:46 2017 +0200 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Thu May 18 08:47:21 2017 -0400 |
tree | 622e8965a0ca3895def411fb7b7f57d60c9ef360 | |
parent | 55fe40ac77b2a419cd9ade9de07e06d31ca18c5c [diff] |
libselinux: propagate selabel_subs_init() errors Memory allocation failures in selabel_subs_init() should be fatal, contrary to failures which come from the non-existence of the substitution files (subs or subs_dist). Modify selabel_subs_init()'s prototype in order to return the error state. This forces the pointer to the created substitution list to be moved to an output function argument. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>