bieli / lsmods

Command line tool for listing all loaded Linux kernel modules with description

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lsmods

Terminal tool to show all enabled Linux Kernel modules with descriptions (line by line).

CI status

go report

How to compile

$ make build

How to run

$ chmod a+x ./lsmods
$ ./lsmods | tail
2020/11/11 23:17:30 Currently loaded kernel modules with descriptions:
xor				
xt_CHECKSUM			Xtables: checksum modification
xt_MASQUERADE			Xtables: automatic-address SNAT
xt_addrtype			Xtables: address type match
xt_comment			Xtables: No-op match which can be tagged with a comment
xt_conntrack			Xtables: connection tracking state match
xt_nat				
xt_state			ip[6]_tables connection tracking state match module
xt_tcpudp			Xtables: TCP, UDP and UDP-Lite match
zstd_compress			Zstd Compressor

How to run unit test

$ make tests

How to run

$ make run

How to run with Docker

Build Docker container

$ sudo docker build -t lsmods .

Debug inside Docker container

Warning ! Below command show kernel modules from host machine - not from docker container (it's impossible to do this way).

$ docker run --privileged --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules -it lsmods /go/src/app/lsmods

About

Command line tool for listing all loaded Linux kernel modules with description


Languages

Language:Go 93.4%Language:Dockerfile 4.4%Language:Makefile 2.2%