Show strerror for security_getenforce().
Patch by Colin Waters. Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
parent
70aeeb918a
commit
dbbd0ab903
|
@ -215,8 +215,9 @@ int avc_init(const char *prefix,
|
|||
rc = security_getenforce();
|
||||
if (rc < 0) {
|
||||
avc_log(SELINUX_ERROR,
|
||||
"%s: could not determine enforcing mode\n",
|
||||
avc_prefix);
|
||||
"%s: could not determine enforcing mode: %s\n",
|
||||
avc_prefix,
|
||||
strerror(errno));
|
||||
goto out;
|
||||
}
|
||||
avc_enforcing = rc;
|
||||
|
|
Loading…
Reference in New Issue