Show strerror for security_getenforce().

Patch by Colin Waters.

Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
Eamon Walsh 2010-03-15 18:40:40 -04:00
parent 70aeeb918a
commit dbbd0ab903
1 changed files with 3 additions and 2 deletions

View File

@ -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;