Change-Id: I05016d7a1c06d427573e72d62f0f6b2cf7730816
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
return false;
}
+ errno = 0;
if (smack_new_label_from_path(path.c_str(), XATTR_NAME_SMACK, 1, &smack_label)
<= 0) {
- LOGE("smack_new_label_from_path failed");
+ LOGE("smack_new_label_from_path failed : %d [%s][%s]",
+ errno, strerror(errno), path.c_str());
return false;
}
int size;
uid_t uid = getuid();
+ errno = 0;
size = smack_new_label_from_path(file_path, XATTR_NAME_SMACK,
TRUE, &smack_label);
if (size <= 0) {
- ERR("Failed to get smack info");
+ ERR("Failed to get smack info : %d [%s][%s]",
+ errno, strerror(errno), file_path);
return NULL;
}