commit | d329bb546552f11ae3f6ce2dafb86d4e2859e8a1 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Sat Aug 05 18:37:46 2017 +0200 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Mon Aug 07 10:44:23 2017 -0400 |
tree | d66d27138fe957670bb3f068a4a75bd22a4c5512 | |
parent | 3edb139789d0895aba9c34f6ce27dea40c181ddf [diff] |
sepolicy: do not fail when file_contexts.local does not exist When running "sepolicy manpage" on a system without file_contexts.local, the command fails with: FileNotFoundError: [Errno 2] No such file or directory: '//etc/selinux/refpolicy/contexts/files/file_contexts.local' Verify that the file exists before using it. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>