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();
|
rc = security_getenforce();
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
avc_log(SELINUX_ERROR,
|
avc_log(SELINUX_ERROR,
|
||||||
"%s: could not determine enforcing mode\n",
|
"%s: could not determine enforcing mode: %s\n",
|
||||||
avc_prefix);
|
avc_prefix,
|
||||||
|
strerror(errno));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
avc_enforcing = rc;
|
avc_enforcing = rc;
|
||||||
|
|
Loading…
Reference in New Issue