Lines Matching refs:path
53 char path[PATH_MAX];
85 ret = snprintf(path, sizeof path, "%s/class/%s/index", selinux_mnt,s);
86 if (ret < 0 || (size_t)ret >= sizeof path)
89 fd = open(path, O_RDONLY | O_CLOEXEC);
103 ret = snprintf(path, sizeof path, "%s/class/%s/perms",selinux_mnt,s);
104 if (ret < 0 || (size_t)ret >= sizeof path)
107 dir = opendir(path);
116 ret = snprintf(path, sizeof path, "%s/class/%s/perms/%s", selinux_mnt,s,dentry->d_name);
117 if (ret < 0 || (size_t)ret >= sizeof path)
120 fd = open(path, O_RDONLY | O_CLOEXEC);