mirror of
git://github.com/lxc/lxc
synced 2025-09-01 10:24:33 +00:00
conf: log session keyring failure on WARN level
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user