• Home
  • Raw
  • Download

Lines Matching refs:pos

96 	char *pos = ERR_PTR(-ENOMEM);  in tomoyo_get_absolute_path()  local
100 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path()
101 if (!IS_ERR(pos) && *pos == '/' && pos[1]) { in tomoyo_get_absolute_path()
110 return pos; in tomoyo_get_absolute_path()
127 char *pos = ERR_PTR(-ENOMEM); in tomoyo_get_dentry_path() local
130 pos = dentry_path_raw(dentry, buffer, buflen - 1); in tomoyo_get_dentry_path()
131 if (!IS_ERR(pos) && *pos == '/' && pos[1]) { in tomoyo_get_dentry_path()
140 return pos; in tomoyo_get_dentry_path()
156 char *pos = tomoyo_get_dentry_path(dentry, buffer, buflen); in tomoyo_get_local_path() local
158 if (IS_ERR(pos)) in tomoyo_get_local_path()
159 return pos; in tomoyo_get_local_path()
161 if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { in tomoyo_get_local_path()
163 const pid_t pid = (pid_t) simple_strtoul(pos + 1, &ep, 10); in tomoyo_get_local_path()
167 pos = ep - 5; in tomoyo_get_local_path()
168 if (pos < buffer) in tomoyo_get_local_path()
170 memmove(pos, "/self", 5); in tomoyo_get_local_path()
197 pos -= name_len; in tomoyo_get_local_path()
198 if (pos < buffer) in tomoyo_get_local_path()
200 memmove(pos, name, name_len); in tomoyo_get_local_path()
201 return pos; in tomoyo_get_local_path()
209 pos -= name_len + 1; in tomoyo_get_local_path()
210 if (pos < buffer) in tomoyo_get_local_path()
212 memmove(pos, name, name_len); in tomoyo_get_local_path()
213 pos[name_len] = ':'; in tomoyo_get_local_path()
215 return pos; in tomoyo_get_local_path()
247 char *pos; in tomoyo_realpath_from_path() local
259 pos = dentry->d_op->d_dname(dentry, buf, buf_len - 1); in tomoyo_realpath_from_path()
270 pos = tomoyo_get_local_path(path->dentry, buf, in tomoyo_realpath_from_path()
274 pos = tomoyo_get_absolute_path(path, buf, buf_len - 1); in tomoyo_realpath_from_path()
279 if (pos == ERR_PTR(-EINVAL)) in tomoyo_realpath_from_path()
280 pos = tomoyo_get_local_path(path->dentry, buf, in tomoyo_realpath_from_path()
284 if (IS_ERR(pos)) in tomoyo_realpath_from_path()
286 name = tomoyo_encode(pos); in tomoyo_realpath_from_path()