2
0
mirror of git://github.com/lxc/lxc synced 2025-09-01 11:42:38 +00:00

conf: log session keyring failure on WARN level

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2021-08-06 09:45:33 +02:00
parent 27217f7c54
commit cff59253a0

View File

@@ -3991,7 +3991,7 @@ static int lxc_setup_keyring(struct lsm_ops *lsm_ops, const struct lxc_conf *con
else if (conf->lsm_se_context) else if (conf->lsm_se_context)
ret = lsm_ops->keyring_label_set(lsm_ops, conf->lsm_se_context); ret = lsm_ops->keyring_label_set(lsm_ops, conf->lsm_se_context);
if (ret < 0) if (ret < 0)
return log_error_errno(-1, errno, "Failed to set keyring context"); return syserror("Failed to set keyring context");
/* /*
* Try to allocate a new session keyring for the container to prevent * Try to allocate a new session keyring for the container to prevent
@@ -4010,7 +4010,7 @@ static int lxc_setup_keyring(struct lsm_ops *lsm_ops, const struct lxc_conf *con
DEBUG("Failed to access kernel keyring. Continuing..."); DEBUG("Failed to access kernel keyring. Continuing...");
break; break;
default: default:
SYSERROR("Failed to create kernel keyring"); SYSWARN("Failed to create kernel keyring");
break; break;
} }
} }