mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-28 17:02:03 +00:00
266c16ff53
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> |
||
---|---|---|
.. | ||
Makefile | ||
semodule_package.8 | ||
semodule_package.c | ||
semodule_unpackage.8 | ||
semodule_unpackage.c |