Lines Matching defs:path
228 static int DacGetParamSecurityLabel(const char *path)
230 PARAM_CHECK(path != NULL, return -1, "Invalid param");
232 if ((stat(path, &st) == 0) && !S_ISDIR(st.st_mode)) {
233 return ProcessParamFile(path, NULL);
236 PARAM_LOGV("DacGetParamSecurityLabel %s ", path);
237 DIR *pDir = opendir(path);
238 PARAM_CHECK(pDir != NULL, return -1, "Read dir :%s failed.%d", path, errno);
241 return -1, "Failed to malloc for %s", path);
256 int ret = PARAM_SPRINTF(fileName, MAX_BUF_SIZE, "%s/%s", path, dp->d_name);
271 PARAM_LOGV("Get parameter security label dac number is %d, from %s.", count, path);