diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2001-11-01 20:56:57 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2001-11-01 20:56:57 +0000 |
| commit | fc5d29ef7d6767747043a78fa18554ccd4e4b045 (patch) | |
| tree | d29ed0901454dffcc55e4c0606aef0cd915d84eb /sys/kern/kern_linker.c | |
| parent | 309b8fb98a92ca7f2b5785d934c63772e829f440 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_linker.c')
| -rw-r--r-- | sys/kern/kern_linker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 7c2b59d4b669..fd12eaa8ea45 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -697,7 +697,7 @@ kldload(struct thread* td, struct kldload_args* uap) mtx_lock(&Giant); - if ((error = suser_td(td)) != 0) + if ((error = suser_xxx(td->td_proc->p_ucred, NULL, 0)) != 0) goto out; pathname = malloc(MAXPATHLEN, M_TEMP, M_WAITOK); @@ -743,7 +743,7 @@ kldunload(struct thread* td, struct kldunload_args* uap) mtx_lock(&Giant); - if ((error = suser_td(td)) != 0) + if ((error = suser_xxx(td->td_proc->p_ucred, NULL, 0)) != 0) goto out; lf = linker_find_file_by_id(SCARG(uap, fileid)); |
