selinux/policycoreutils
Nicolas Iooss 266c16ff53 policycoreutils: semodule_package: do not fail with an empty fc file
When running sepolgen tests on a Linux 4.7 kernel, one test fails with
the following message:

    /usr/bin/semodule_package:  Failed to mmap
    tmp/module_compile_test.mod.fc:  Invalid argument

The .fc file is empty, which is why it cannot be used with mmap().
Anyway the current code supports empty files (with if() conditions in
main()) so do not try to mmap an empty file in file_to_data().

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2016-10-31 12:46:54 -04:00
..
.tx
audit2allow
gui policycoreutils/gui: fix system-config-selinux editing features 2016-10-21 12:58:41 -04:00
hll
load_policy
man
mcstrans
newrole
po
restorecond policycoreutils: restorecond: use pkg-config to find dbus-glib-1 files 2016-10-31 12:44:10 -04:00
run_init
sandbox
scripts
secon
semanage
semodule
semodule_deps
semodule_expand
semodule_link
semodule_package policycoreutils: semodule_package: do not fail with an empty fc file 2016-10-31 12:46:54 -04:00
sepolgen-ifgen
sepolicy
sestatus
setfiles policycoreutils: setfiles: make -I imply -D 2016-09-30 12:12:28 -04:00
setsebool
.gitignore policycoreutils: setfiles: ignore restorecon_xattr in git 2016-09-29 10:42:23 -04:00
ChangeLog Updated policycoreutils ChangeLog 2016-10-21 12:59:37 -04:00
COPYING
Makefile
VERSION Update VERSION and ChangeLog files for 2.6 final release. 2016-10-14 11:31:26 -04:00