[Issue#] N/A
[Feature/Bug] N/A
[Problem] Fixed array instead of pointer was used as an API function argument
[Cause] N/A
[Solution] Function modified. Unnecessary include removed
[Verification] Successfull compilation of libprivilege-control and security-tests
Change-Id: I333611c51e9f17152e1353d38516024212ce91e1
#include <dlog.h>
#include <fts.h>
#include <stdbool.h>
+#include <sys/smack.h>
#ifdef LOG_TAG
#undef LOG_TAG
#include <stdbool.h>
#include <sys/types.h>
-#include <sys/smack.h>
#ifndef _PRIVILEGE_CONTROL_H_
#define _PRIVILEGE_CONTROL_H_
* @param out: label of process
* @return PC_OPERATION_SUCCESS on success PC_ERR_* on error.
*/
-int get_smack_label_from_process(pid_t pid, char smack_label[SMACK_LABEL_LEN + 1]);
+int get_smack_label_from_process(pid_t pid, char *smack_label);
/**
* Check if process with pid has access to object.
/**
* TODO: this function should be moved to libsmack in open-source.
*/
-API int get_smack_label_from_process(pid_t pid, char smack_label[SMACK_LABEL_LEN + 1])
+API int get_smack_label_from_process(pid_t pid, char *smack_label)
{
SECURE_C_LOGD("Entering function: %s. Params: pid=%i", __func__, pid);