To prevent malicious binary by changing path of systemctl,
modify path of systemctl command with absolute path.
Change-Id: I6a7bc842d43f954ac3ac9a1a43684d4de7167155
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
char path[] = "/etc/pass/pass.conf";
/* Stop PASS daemon before HAL testing */
- ret = system("systemctl stop pass.service");
+ ret = system("/bin/systemctl stop pass.service");
ASSERT_EQ(ret, 0) << "PassServieStop Faield";
ret = pass_get_resource_config(&g_pass, path);
}
/* Restart PASS daemon before HAL testing */
- ret = system("systemctl start pass.service");
+ ret = system("/bin/systemctl start pass.service");
ASSERT_EQ(ret, 0) << "PassServiceStart Faield";
}