]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: log session keyring failure on WARN level
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 6 Aug 2021 07:45:33 +0000 (09:45 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 10 Aug 2021 08:03:13 +0000 (10:03 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 10b6010d923ea0b2bdb9023f9f7dbd38ef3f72c7..f342f3bac6d7444a18380fe42b2a7e440db75bef 100644 (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)
                ret = lsm_ops->keyring_label_set(lsm_ops, conf->lsm_se_context);
        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
@@ -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...");
                        break;
                default:
-                       SYSERROR("Failed to create kernel keyring");
+                       SYSWARN("Failed to create kernel keyring");
                        break;
                }
        }