summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Swierczek <t.swierczek@samsung.com>2023-10-27 16:05:59 +0200
committerTomasz Swierczek <t.swierczek@samsung.com>2023-11-29 11:07:42 +0100
commit3a11f21b314b017eb83fced9997195d53b86c2f7 (patch)
treee030a4323ae051418ea4b51066415388c6376dce
parent5ea50807df42eea7f0e1d5727653400ad2882a67 (diff)
downloadsecurity-manager-3a11f21b314b017eb83fced9997195d53b86c2f7.tar.gz
security-manager-3a11f21b314b017eb83fced9997195d53b86c2f7.tar.bz2
security-manager-3a11f21b314b017eb83fced9997195d53b86c2f7.zip
Modified error log in case of failed relabel_self setup
Error in this place sometimes happens on VD images, but without harsh consequences, as if it happened in places where the label list is still empty. Added number of labels to be printed. Change-Id: I564b819dd53ae359b908ee111573cdde950343ce
-rw-r--r--src/client/client-label-monitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/client-label-monitor.cpp b/src/client/client-label-monitor.cpp
index 7050cf2c..a92f1513 100644
--- a/src/client/client-label-monitor.cpp
+++ b/src/client/client-label-monitor.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2022 Samsung Electronics Co., Ltd. All rights reserved
+ * Copyright (c) 2016-2023 Samsung Electronics Co., Ltd. All rights reserved
*
* This file is licensed under the terms of MIT License or the Apache License
* Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details.
@@ -149,7 +149,7 @@ static lib_retcode apply_relabel_list(app_labels_monitor *monitor)
{ return label.c_str(); });
if (smack_set_relabel_self(temp.data(), temp.size()) != 0) {
- LogError("smack_set_relabel_self failed");
+ LogError("smack_set_relabel_self failed, number of labels: " << temp.size());
return SECURITY_MANAGER_ERROR_SET_RELABEL_SELF_FAILED;
}
} catch (PermissibleSet::PermissibleSetException::FileOpenError &e) {