mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-03 07:37:34 -04:00
unix: add kernel module load/unload syscalls on Linux
InitModule loads a kernel module from an ELF image. FinitModule loads a kernel module from a file descriptor. DeleteModule unloads a kernel module. These syscalls require the CAP_SYS_MODULE capability. See http://man7.org/linux/man-pages/man2/init_module.2.html and http://man7.org/linux/man-pages/man2/delete_module.2.html for details. Also drop deprecated syscalls related to kernel modules from the list of unimplemented syscalls. Change-Id: I131e17f02c5617640f5f4073982d2b27a6d78bbf Reviewed-on: https://go-review.googlesource.com/c/144173 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
d989b31c87
commit
731415f00d
@@ -1021,6 +1021,8 @@ const (
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
|
||||
Reference in New Issue
Block a user