mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
Teach usermode emulation how to lie about uname -r.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1920 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
00a9bf191b
commit
c59372208a
4 changed files with 15 additions and 0 deletions
|
@ -2861,6 +2861,9 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
|
|||
/* Overrite the native machine name with whatever is being
|
||||
emulated. */
|
||||
strcpy (buf->machine, UNAME_MACHINE);
|
||||
/* Allow the user to override the reported release. */
|
||||
if (qemu_uname_release && *qemu_uname_release)
|
||||
strcpy (buf->release, qemu_uname_release);
|
||||
}
|
||||
unlock_user_struct(buf, arg1, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue