user-mode-linux

Direct access to structure task_struct from Usermode as root

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:45:52
问题 I know it is supposed to be used in Kernel Modules. But if I want to pass a pointer to struct task_struct and read the data (for example process name) from it in user mode with root privileges, will it be possible? I want to access raw virtual addresses, and hope it will be a struct task_struct structure if not, go further. It will be kind of brute forcing virtual address for task_structs. Do I have to go through Kernel Headers and import struct definitions manually to read each bytes? Thanks

Is user mode linux (UML) project stopped?

霸气de小男生 提交于 2019-12-07 06:30:01
问题 For some educational project I need to work with user-mode-linux (UML). Based on the homepage of UML, it seems that the project was stopped at 2004. However, the author of project was hired by Intel in 2004 to work on UML full-time. Is the project dead or continued by Intel (or open source community) with new name? 回答1: While it does look stale, it still works as of v4.9.6. Tested with this setup: https://unix.stackexchange.com/questions/73203/how-to-create-rootfs-for-user-mode-linux-on

Is user mode linux (UML) project stopped?

∥☆過路亽.° 提交于 2019-12-05 13:59:59
For some educational project I need to work with user-mode-linux (UML). Based on the homepage of UML, it seems that the project was stopped at 2004. However, the author of project was hired by Intel in 2004 to work on UML full-time. Is the project dead or continued by Intel (or open source community) with new name? While it does look stale, it still works as of v4.9.6. Tested with this setup: https://unix.stackexchange.com/questions/73203/how-to-create-rootfs-for-user-mode-linux-on-fedora-18/372207#372207 If you do: git log arch/um it shows a few hits per month, mostly maintenance to keep up

Why does call_usermodehelper fail most of the times?

Deadly 提交于 2019-11-28 09:52:14
问题 From a kernel module, I am trying to use call_usermodehelper function to execute an executable sha1 which takes a file as argument and writes the SHA1 hash sum of the file to another file (named output). The executable works perfectly. int result=-1; name = "/home/file" char *hargv[] = {"/home/sha1", name,NULL }; char *henvp[] = {"HOME=/", "PATH=/sbin:/usr/sbin:/bin:/usr/bin", NULL }; result = call_usermodehelper("/home/sha1", hargv, henvp, 1); But most of the times call_usermodehelper