selinux/libsemanage/src
Thomas Hurd a4e290e425 libsemanage: Fix logic in bunzip for uncompressed pp files
Unconditionally check the magic number before BZ2_bzReadOpen()
instead of only when bzip_blocksize=0, since it falls through.
That way if the file is not compressed it will return immediately
and map_file can mmap it. If the file is compressed then it will
go through the BZ2 functions and any errors will be reported correctly.

This fixes 0afd5de5c1 so that a bz2 error
isn't reported when a uncompressed pp is installed successfully.

Signed-off-by: Thomas Hurd <thurd@tresys.com>
2015-03-19 13:01:11 -04:00
..
.gitignore libselinux: additional makefile support for rubywrap 2012-06-28 11:21:16 -04:00
Makefile libsemanage: install to LIBDIR instead of SHLIBDIR 2014-10-22 08:22:56 -04:00
boolean_internal.h libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
boolean_record.c libsemanage: do boolean name substitution 2012-09-12 13:17:30 -04:00
booleans_active.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans_activedb.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans_file.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
booleans_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
booleans_policydb.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
conf-parse.y libsemanage: Fix memory leaks when parsing semanage.conf 2015-02-27 08:42:09 -05:00
conf-scan.l libsemanage: Fix memory leaks when parsing semanage.conf 2015-02-27 08:42:09 -05:00
context_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database.c libsemanage: drop the -no-unused-parameter build flag 2011-08-01 13:40:20 -04:00
database.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_activedb.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_activedb.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_file.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
database_file.h libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
database_join.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_join.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_llist.c libsemanage: fixes from coverity 2013-02-05 20:14:45 -05:00
database_llist.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
database_policydb.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
database_policydb.h libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
debug.c libsemanage: fixes from coverity 2013-02-05 20:14:45 -05:00
debug.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
direct_api.c libsemanage: Fix logic in bunzip for uncompressed pp files 2015-03-19 13:01:11 -04:00
direct_api.h libsemanage: Enable configuration of bzip behavior 2009-08-05 08:33:34 -04:00
dso.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
exception.sh Properly build the swig exception file even if the headers are missing 2013-10-30 12:19:02 -04:00
fcontext_internal.h libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
fcontext_record.c libsemanage: fcontext_record: do not leak on error in semanage_fcontext_key_create 2013-02-05 20:19:04 -05:00
fcontexts_file.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
fcontexts_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
fcontexts_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
genhomedircon.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
genhomedircon.h libsemanage: add ignoredirs config for genhomedircon 2011-12-21 12:25:28 -05:00
handle.c libsemanage: add the ability to set an alternative root path for store 2014-08-26 08:03:31 -04:00
handle.h libsemanage: add default priority to semanage_handle_t 2014-08-26 08:02:16 -04:00
handle_internal.h libsemanage: add back support for semange_set_root using the new source policy infrastructure 2014-08-26 08:02:16 -04:00
iface_internal.h libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
iface_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
interfaces_file.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
interfaces_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
interfaces_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
interfaces_policydb.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
libsemanage.map libsemanage: add the ability to set an alternative root path for store 2014-08-26 08:03:31 -04:00
libsemanage.pc.in updated libselinux pkgconfig does not work correctly on lib64 machines. 2010-03-06 18:06:43 -05:00
module_internal.h libsemanage: update install functions to support CIL 2014-08-26 08:02:16 -04:00
modules.c libsemanage: constify name and ext_lang parameters of semanage_module_install_hll 2014-10-02 09:56:22 -04:00
modules.h libsemanage: constify name and ext_lang parameters of semanage_module_install_hll 2014-10-02 09:56:22 -04:00
node_internal.h libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
node_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
nodes_file.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
nodes_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
nodes_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
nodes_policydb.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
parse_utils.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
parse_utils.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
policy.h libsemanage: constify name and ext_lang parameters of semanage_module_install_hll 2014-10-02 09:56:22 -04:00
policy_components.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
port_internal.h libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
port_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ports_file.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
ports_local.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ports_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ports_policydb.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
pywrap-test.py libsemanage: update install functions to support CIL 2014-08-26 08:02:16 -04:00
semanage.conf libsemanage: add target-platform option to semanage.conf 2014-08-26 08:02:16 -04:00
semanage_conf.h libsemanage: Add option to remove HLL files after compilation 2015-02-27 08:41:59 -05:00
semanage_store.c libsemanage: add the ability to set an alternative root path for store 2014-08-26 08:03:31 -04:00
semanage_store.h libsemanage: add the ability to set an alternative root path for store 2014-08-26 08:03:31 -04:00
semanageswig.i initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
semanageswig_python.i libsemanage: update install functions to support CIL 2014-08-26 08:02:16 -04:00
semanageswig_ruby.i libsemanage: Add Ruby Bindings 2009-05-28 10:53:11 -04:00
seuser_internal.h libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
seuser_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
seusers_file.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
seusers_local.c libsemanage: Fix use of unitialized variable 2014-10-02 09:55:44 -04:00
seusers_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
user_base_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
user_extra_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
user_internal.h libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
user_record.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
users_base_file.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
users_base_policydb.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
users_extra_file.c libsemanage: split final files into /var/lib/selinux/tmp 2014-08-26 08:02:16 -04:00
users_join.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
users_local.c Pull auditing into libsemanage. 2013-10-24 13:58:38 -04:00
users_policy.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
utilities.c libsemanage: fix gcc -Wwrite-strings warnings 2014-10-02 09:56:25 -04:00
utilities.h libsemanage: fix gcc -Wwrite-strings warnings 2014-10-02 09:56:25 -04:00