[Issue#] N/A
[Bug] Wrong pointer passed to allocating fuinction
[Cause] N/A
[Soultion] Changed to correct pointer
[Verification] No warnings while compilation
Change-Id: I54d00e11862f1986b0518009bdb30a5942f127b7
}
/* Get app PID from socked and read its privilege (GID) list
- * from /proc/<PDI>/status.
+ * from /proc/<PID>/status.
*
* param 1: socket descriptor
* param 2: pointer for hold returned array
//file pointer
FILE * fp = NULL;
//buffer for filelines
- const int LINESIZE = 128;
+ const int LINESIZE = 256;
char fileLine[LINESIZE];
//for parsing file
char delim[] = ": ";
{
int retval, client_pid;
unsigned char requested_cookie[SECURITY_SERVER_COOKIE_LEN];
- int * privileges;
+ int * privileges = NULL;
cookie_list *search_result = NULL;
/* Authenticate client */
int process_smack_request(int sockfd)
{
int retval, client_pid;
- int privileges[1];
+ int * privileges = NULL;
unsigned char requested_cookie[SECURITY_SERVER_COOKIE_LEN];
cookie_list *search_result = NULL;
//handler for SMACK label