(
&self,
path: SboxPtr,
path_len: u32,
should_follow: bool,
dirfd: HostFd,
)
| 204 | } |
| 205 | )] |
| 206 | pub fn translate_path( |
| 207 | &self, |
| 208 | path: SboxPtr, |
| 209 | path_len: u32, |
| 210 | should_follow: bool, |
| 211 | dirfd: HostFd, |
| 212 | ) -> RuntimeResult<HostPath> { |
| 213 | if !self.fits_in_lin_mem(path, path_len) { |
| 214 | return Err(Eoverflow); |
| 215 | } |
| 216 | let host_buffer = self.copy_buf_from_sandbox(path, path_len); |
| 217 | resolve_path(host_buffer, should_follow, dirfd) |
| 218 | // self.resolve_path(host_buffer) |
| 219 | } |
| 220 | |
| 221 | pub fn get_homedir(&self) -> Vec<u8> { |
| 222 | string_to_vec_u8(&self.homedir) |
no test coverage detected