selinux/policycoreutils/semodule_package
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
..
Makefile policycoreutils: semodule_package: remove semodule_unpackage on clean 2011-11-02 16:22:05 -04:00
semodule_package.8 libselinux, policycoreutils: Man page warning fixes 2015-11-24 16:32:13 -05:00
semodule_package.c policycoreutils: semodule_package: do not fail with an empty fc file 2016-10-31 12:46:54 -04:00
semodule_unpackage.8 Laurent Bigonville patch to fix various minor manpage issues and correct section numbering. 2013-10-24 13:58:37 -04:00
semodule_unpackage.c policycoreutils: fix most gcc -Wwrite-strings warnings 2014-10-02 09:56:34 -04:00