cirosantilli / linux-kernel-module-cheat

The perfect emulation setup to study and develop the Linux kernel v5.4.3, kernel modules, QEMU, gem5 and x86_64, ARMv7 and ARMv8 userland and baremetal assembly, ANSI C, C++ and POSIX. GDB step debug and KGDB just work. Powered by Buildroot and crosstool-NG. Highly automated. Thoroughly documented. Automated tests. "Tested" in an Ubuntu 24.04 host.
https://cirosantilli.com/linux-kernel-module-cheat
GNU General Public License v3.0
4.2k stars 605 forks source link

add USER for docker #262

Open atharvanan1 opened 1 year ago

atharvanan1 commented 1 year ago

I noticed that using docker to do first build, will result in cloning the submodules with root owner. Do we want to add USER setting in the Dockerfile to be able to clone those with USER owner? This proves editing the submodules a bit difficult. There are workarounds - chown -R USER:GROUP submodules and such.

Not a high priority.

cirosantilli commented 1 year ago

Hi. Yes, I would like to do that, not only for submodules, but also for the entire out/ directory. This is mentioned at: https://cirosantilli.com/linux-kernel-module-cheat/docker "TODO make files created inside Docker be owned by the current user in host instead of root". If you find a way, do let me know.

atharvanan1 commented 1 year ago

Hi! Thanks for your input. I just read this, I'll take a look.