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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 3 Nov 2021 23:33:18 -0400 From: "Theodore Ts'o" <tytso@....edu> To: Lukas Czerner <lczerner@...hat.com> Cc: fstests@...r.kernel.org, linux-ext4@...r.kernel.org, guan@...u.me Subject: Re: [PATCH v4] ext4: add test for all ext4/ext3/ext2 mount options > +_has_kernel_config() > +{ > + option=$1 > + config="/lib/modules/$(uname -r)/build/.config" > + grep -qE "^${option}=[my]" $config > +} In my test infrastructure, /lib/modules/$Kver/build/.config doesn't exist. That's because I build the kernel without any modules, and then launch kvm using its --kernel command-line option. This really helps with development velocity, since the developer doesn't need to waste time installing the kernel, and/or building a kernel rpm or dpkg. Instead, kvm can just launch the kernel directly out of the build tree: /usr/bin/kvm ... --kernel /build/ext4/arch/x86/boot/bzImage .. So it would be nice if _has_kernel_config also checks to see if /proc/config.gz exists, and if so, tries to use it. Thanks, - Ted
Powered by blists - more mailing lists