selinux/libselinux/utils
Stephen Smalley 2c0b12699d sefcontext_compile: do not fail silently
sefcontext_compile was failing silently on various error paths.
Generate a suitable error message to stderr for each error.

Before:
$ sefcontext_compile /path/to/unwritabledirectory/file_contexts
<no output, although non-zero exit status>

After:
$ sefcontext_compile /path/to/unwritabledirectory/file_contexts
sefcontext_compile: mkstemp /path/to/unwritabledirectory/file_contexts.binNmQJqa failed: Permission denied

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2016-09-26 15:25:12 -04:00
..
.gitignore Update .gitignore files 2016-05-09 08:14:54 -04:00
avcstat.c libselinux: Fix errors found by coverity 2013-02-05 20:14:45 -05:00
compute_av.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
compute_create.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
compute_member.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
compute_relabel.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
compute_user.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getconlist.c Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
getdefaultcon.c Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
getenforce.c libselinux: use -W and -Werror in utils 2011-12-05 16:14:17 -05:00
getfilecon.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getpidcon.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getsebool.c libselinux: getsebool: support boolean name substitution 2012-09-12 13:14:29 -04:00
getseuser.c Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
Makefile libselinux: add support for pcre2 2016-09-15 13:49:14 -04:00
matchpathcon.c Get rid of security_context_t and fix const declarations. 2014-02-19 16:11:48 -05:00
policyvers.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
sefcontext_compile.c sefcontext_compile: do not fail silently 2016-09-26 15:25:12 -04:00
selabel_digest.c libselinux: silent -Wsign-compare warnings 2016-09-26 11:00:31 -04:00
selabel_lookup_best_match.c libselinux: Ensure selabel_lookup_best_match links NULL terminated 2015-05-18 11:53:25 -04:00
selabel_lookup.c libselinux: Add selabel partial and best match APIs 2015-05-06 11:58:44 -04:00
selabel_partial_match.c libselinux: Add selabel partial and best match APIs 2015-05-06 11:58:44 -04:00
selinux_check_securetty_context.c libselinux: Fix const-ness of parameters & make usage() methods static 2012-03-28 14:52:12 -04:00
selinux_restorecon.c libselinux: Add setfiles support to selinux_restorecon(3) 2016-08-11 14:33:55 -04:00
selinuxenabled.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinuxexeccon.c Deprecate use of flask.h and av_permissions.h. 2014-07-09 13:49:18 -04:00
setenforce.c libselinux: Fix const-ness of parameters & make usage() methods static 2012-03-28 14:52:12 -04:00
setfilecon.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
togglesebool.c Fix -Wformat errors 2015-03-13 14:14:23 -04:00