| 234 | } |
| 235 | |
| 236 | static int |
| 237 | open_file(const char *path, struct nameidata *nid) |
| 238 | { |
| 239 | int flags, rc; |
| 240 | |
| 241 | flags = FREAD; |
| 242 | |
| 243 | pwd_ensure_dirs(); |
| 244 | |
| 245 | NDINIT(nid, LOOKUP, 0, UIO_SYSSPACE, path, curthread); |
| 246 | rc = vn_open(nid, &flags, 0, NULL); |
| 247 | NDFREE(nid, NDF_ONLY_PNBUF); |
| 248 | if (rc != 0) |
| 249 | return (rc); |
| 250 | |
| 251 | return (0); |
| 252 | } |
| 253 | |
| 254 | /* |
| 255 | * Read the manifest from location specified in path and verify its digest. |
no test coverage detected