[Issue#] SSDWSSP-433
[Feature] Change libsmack for compatibility with a newly changed smack API.
[Cause] Now libsmack functions: smack_new_label_from_self() and smack_new_label_from_socket(), in case of success, are returning value greater than 0.
[Solution] Change expected result.
[Verification] Run tests.
Change-Id: Idca56a593179f02d84df808bdc6c5ca01685e62d
int ret;
ret = smack_new_label_from_socket(sockfd, &app_id);
- if (ret != 0) {
+ if (ret < 0) {
C_LOGE("smack_new_label_from_socket failed");
return NULL;
}