mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Do not allow access to emuldata for non Linux processes.
Pointed out by: mjg@ Security: https://admbugs.freebsd.org/show_bug.cgi?id=679
This commit is contained in:
parent
9d8b002160
commit
6e5549717a
1 changed files with 2 additions and 0 deletions
|
|
@ -1099,6 +1099,8 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args
|
|||
ESRCH);
|
||||
return (ESRCH);
|
||||
}
|
||||
if (SV_PROC_ABI(td2->td_proc) != SV_ABI_LINUX)
|
||||
return (EPERM);
|
||||
|
||||
em = em_find(td2);
|
||||
KASSERT(em != NULL, ("get_robust_list: emuldata notfound.\n"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue