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
/*
- * 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.
{ 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) {