Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_exec.c
| Show First 20 Lines • Show All 544 Lines • ▼ Show 20 Lines | #endif | ||||
| */ | */ | ||||
| VOP_UNLOCK(imgp->vp, 0); | VOP_UNLOCK(imgp->vp, 0); | ||||
| /* | /* | ||||
| * Do the best to calculate the full path to the image file. | * Do the best to calculate the full path to the image file. | ||||
| */ | */ | ||||
| if (imgp->auxargs != NULL && | if (imgp->auxargs != NULL && | ||||
| ((args->fname != NULL && args->fname[0] == '/') || | ((args->fname != NULL && args->fname[0] == '/') || | ||||
| vn_fullpath(td, imgp->vp, &imgp->execpath, &imgp->freepath) != 0)) | vn_fullpath(td, imgp->vp, 0, &imgp->execpath, &imgp->freepath) != 0)) | ||||
| imgp->execpath = args->fname; | imgp->execpath = args->fname; | ||||
| if (disallow_high_osrel && | if (disallow_high_osrel && | ||||
| P_OSREL_MAJOR(p->p_osrel) > P_OSREL_MAJOR(__FreeBSD_version)) { | P_OSREL_MAJOR(p->p_osrel) > P_OSREL_MAJOR(__FreeBSD_version)) { | ||||
| error = ENOEXEC; | error = ENOEXEC; | ||||
| uprintf("Osrel %d for image %s too high\n", p->p_osrel, | uprintf("Osrel %d for image %s too high\n", p->p_osrel, | ||||
| imgp->execpath != NULL ? imgp->execpath : "<unresolved>"); | imgp->execpath != NULL ? imgp->execpath : "<unresolved>"); | ||||
| vn_lock(imgp->vp, LK_SHARED | LK_RETRY); | vn_lock(imgp->vp, LK_SHARED | LK_RETRY); | ||||
| ▲ Show 20 Lines • Show All 961 Lines • Show Last 20 Lines | |||||