[Verification] Code compiles without errors.
TCT passrate on RPI4 auto tests - 100% for Tizen Web Device API.
Change-Id: Ifc41d55a310bd3f8f393d23ea189ef10f6c3d630
#include <unistd.h>
#include <cynara/cynara-client.h>
+#include <cynara/cynara-creds-pid.h>
#include <sys/smack.h>
#endif
free(smack_label);
};
- char path[1024] = {
- 0,
- };
- snprintf(path, sizeof(path), "/proc/%lu/attr/current", static_cast<unsigned long>(gettid()));
- int ret = smack_getlabel(path, &smack_label, SMACK_LABEL_ACCESS);
+ int ret = cynara_creds_pid_get_client(gettid(), CLIENT_METHOD_DEFAULT, &smack_label);
if (0 == ret && nullptr != smack_label && 0 < strlen(smack_label)) {
auto uid = getuid();