lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191203072802.GA224932@ArchLinux>
Date:   Tue, 3 Dec 2019 12:58:02 +0530
From:   Bhaskar Chowdhury <unixbhaskar@...il.com>
To:     yamada.masahiro@...ionext.com, michal.lkml@...kovi.net,
        rdunlap@...radead.org
Cc:     linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [RFC scripts] Modules info in one liner script

Hi Masahiro/Michal/Randy.

This is very trivial and one line script to extract out the running
kernel modules with descriptions, like below

filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/ata/libata.ko.xz
description:    Library module for ATA devices
depends:        scsi_mod
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/usb/host/xhci-pci.ko.xz
description:    xHCI PCI Host Controller Driver
depends:        xhci-hcd
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/usb/host/xhci-hcd.ko.xz
description:    'eXtensible' Host Controller (xHC) Driver
depends:
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/scsi/scsi_mod.ko.xz
description:    SCSI core
depends:
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/arch/x86/crypto/crc32c-intel.ko.xz
description:    CRC32c (Castagnoli) optimization using Intel Hardware.
depends:
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/usb/host/ehci-pci.ko.xz
description:    EHCI PCI platform driver
depends:        ehci-hcd
filename:
/lib/modules/5.4.1-arch1-1ArchLinux-5.4.1/kernel/drivers/usb/host/ehci-hcd.ko.xz
description:    USB 2.0 'Enhanced' Host Controller (EHCI) Driver


and the code to do this :

 awk '{print $1}' "/proc/modules" | xargs modinfo | awk
 '/^(filename|desc|depends)/'

 Can we put in a script called "kernel_modules_info.sh"
 under scripts dir??

 Kindly let me know your thoughts.

 Thanks,
 Bhaskar


Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ