Home
last modified time | relevance | path

Searched refs:filterLibRealPath (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/base/startup/init/services/modules/seccomp/
H A Dseccomp_policy.c99 static bool GetFilterFileByName(const char *filterName, char *filterLibRealPath, unsigned int pathS… in GetFilterFileByName() argument
126 … if (memcpy_s(filterLibRealPath, pathSize, files->paths[0], strlen(files->paths[0]) + 1) == EOK) { in GetFilterFileByName()
136 const char *filterLibRealPath, struct sock_fprog *prog) in GetSeccompPolicy() argument
138 if (filterName == NULL || filterLibRealPath == NULL || handler == NULL || prog == NULL) { in GetSeccompPolicy()
142 if (strstr(filterLibRealPath, FILTER_LIB_PATH_PART) == NULL) { in GetSeccompPolicy()
158 realpath(filterLibRealPath, realPath); in GetSeccompPolicy()
224 char filterLibRealPath[PATH_MAX] = {0}; in SetSeccompPolicyWithName() local
229 bool flag = GetFilterFileByName(filterNamePtr, filterLibRealPath, sizeof(filterLibRealPath)); in SetSeccompPolicyWithName()
233 flag = GetFilterFileByName(filterNamePtr, filterLibRealPath, sizeof(filterLibRealPath)); in SetSeccompPolicyWithName()
243 int retCode = GetSeccompPolicy(filterNamePtr, (int **)&handler, filterLibRealPath, &prog); in SetSeccompPolicyWithName()
[all …]