Lines Matching refs:cpath
61 const char* cpath = path.c_str(); in CreateDeviceNode() local
66 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFBLK)) { in CreateDeviceNode()
72 if (mknod(cpath, mode, dev) < 0) { in CreateDeviceNode()
89 const char* cpath = path.c_str(); in DestroyDeviceNode() local
90 if (TEMP_FAILURE_RETRY(unlink(cpath))) { in DestroyDeviceNode()
98 const char* cpath = path.c_str(); in PrepareDir() local
102 if (!selabel_lookup(sehandle, &secontext, cpath, S_IFDIR)) { in PrepareDir()
107 int res = fs_prepare_dir(cpath, mode, uid, gid); in PrepareDir()
122 const char* cpath = path.c_str(); in ForceUnmount() local
123 if (!umount2(cpath, UMOUNT_NOFOLLOW) || errno == EINVAL || errno == ENOENT) { in ForceUnmount()
130 Process::killProcessesWithOpenFiles(cpath, SIGINT); in ForceUnmount()
132 if (!umount2(cpath, UMOUNT_NOFOLLOW) || errno == EINVAL || errno == ENOENT) { in ForceUnmount()
136 Process::killProcessesWithOpenFiles(cpath, SIGTERM); in ForceUnmount()
138 if (!umount2(cpath, UMOUNT_NOFOLLOW) || errno == EINVAL || errno == ENOENT) { in ForceUnmount()
142 Process::killProcessesWithOpenFiles(cpath, SIGKILL); in ForceUnmount()
144 if (!umount2(cpath, UMOUNT_NOFOLLOW) || errno == EINVAL || errno == ENOENT) { in ForceUnmount()
152 const char* cpath = path.c_str(); in KillProcessesUsingPath() local
153 if (Process::killProcessesWithOpenFiles(cpath, SIGINT) == 0) { in KillProcessesUsingPath()
158 if (Process::killProcessesWithOpenFiles(cpath, SIGTERM) == 0) { in KillProcessesUsingPath()
163 if (Process::killProcessesWithOpenFiles(cpath, SIGKILL) == 0) { in KillProcessesUsingPath()
170 if (Process::killProcessesWithOpenFiles(cpath, SIGKILL) == 0) { in KillProcessesUsingPath()
642 const char* cpath = path.c_str(); in RestoreconRecursive() local
644 property_set("selinux.restorecon_recursive", cpath); in RestoreconRecursive()
649 if (strcmp(cpath, value) == 0) { in RestoreconRecursive()