<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://gentoo-zh.org/extern.php?action=feed&amp;tid=18&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Gentoo中文社区 / Enable loadable module support]]></title>
		<link>http://www.gentoo-zh.org/viewtopic.php?id=18</link>
		<description><![CDATA[Enable loadable module support 最近发表的帖子。]]></description>
		<lastBuildDate>Wed, 03 Aug 2022 14:37:44 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Enable loadable module support]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?pid=18#p18</link>
			<description><![CDATA[<p>Enable loadable module support<br />可加载模块支持</p><p>Enable loadable module support<br />CONFIG_MODULES<br />&#160; &#160; 打开可加载模块支持,可以通过&quot;make modules_install&quot;把内核模块安装在/lib/modules/中.<br />&#160; &#160; 然后可以使用 modprobe, lsmod, modinfo, insmod, rmmod 等工具进行各种模块操作.</p><p>&#160; &#160; Forced module loading<br />&#160; &#160; CONFIG_MODULE_FORCE_LOAD<br />&#160; &#160; &#160; &#160; 允许使用&quot;modprobe --force&quot;在不校验版本信息的情况下强制加载模块,这绝对是个坏主意!建议关闭.<br />&#160; &#160; &#160; &#160;<br />&#160; &#160; Module unloading<br />&#160; &#160; CONFIG_MODULE_UNLOAD<br />&#160; &#160; &#160; &#160; 允许卸载已经加载的模块</p><p>&#160; &#160; &#160; &#160; Forced module unloading<br />&#160; &#160; &#160; &#160; CONFIG_MODULE_FORCE_UNLOAD<br />&#160; &#160; &#160; &#160; &#160; &#160; 允许强制卸载正在使用中的模块(rmmod -f),即使可能会造成系统崩溃.这又是一个坏主意!建议关闭.</p><p>&#160; &#160; Module versioning support<br />&#160; &#160; CONFIG_MODVERSIONS<br />&#160; &#160; &#160; &#160; 允许使用为其他内核版本编译的模块,可会造成系统崩溃.这同样是个坏主意!建议关闭.<br />&#160; &#160; &#160; &#160;<br />&#160; &#160; Source checksum for all modules<br />&#160; &#160; CONFIG_MODULE_SRCVERSION_ALL<br />&#160; &#160; &#160; &#160; 为模块添加&quot;srcversion&quot;字段,以帮助模块维护者准确的知道编译此模块所需要的源文件,<br />&#160; &#160; &#160; &#160; 从而可以校验源文件的变动.仅内核模块开发者需要它.<br />&#160; &#160; &#160; &#160;<br />&#160; &#160; Module signature verification<br />&#160; &#160; CONFIG_MODULE_SIG<br />&#160; &#160; &#160; &#160; 在加载模块时检查模块签名,详情参见&quot;Documentation/module-signing.txt&quot;文件.<br />&#160; &#160; &#160; &#160; [!!警告!!]开启此选项后,必须确保模块签名后没有被strip(包括rpmbuild之类的打包工具).</p><p>&#160; &#160; &#160; &#160; Require modules to be validly signed<br />&#160; &#160; &#160; &#160; CONFIG_MODULE_SIG_FORCE<br />&#160; &#160; &#160; &#160; &#160; &#160; 仅加载已签名并且密钥正确的模块,拒绝加载未签名或者签名密钥不正确的模块<br />&#160; &#160; &#160; &#160; &#160; &#160;<br />&#160; &#160; &#160; &#160; Automatically sign all modules<br />&#160; &#160; &#160; &#160; CONFIG_MODULE_SIG_ALL<br />&#160; &#160; &#160; &#160; &#160; &#160; 在执行&quot;make modules_install&quot;安装模块的时候,自动进行签名.<br />&#160; &#160; &#160; &#160; &#160; &#160; 否则你必须手动使用 scripts/sign-file 工具进行签名.</p><p>&#160; &#160; Which hash algorithm should modules be signed with?<br />&#160; &#160; &#160; &#160; 选择对模块签名时使用的散列函数.建议使用强度最高的&quot;SHA-512&quot;算法.<br />&#160; &#160; &#160; &#160; 注意:所依赖的散列算法必须被静态编译进内核.对于&quot;SHA-512&quot;来说,<br />&#160; &#160; &#160; &#160; 就是CONFIG_CRYPTO_SHA512和CONFIG_CRYPTO_SHA512_SSSE3(如果你的CPU支持SSSE3指令集的话).</p><p>&#160; Compress modules on installation<br />&#160; 安装时压缩模块</p><p>&#160; Trim unused exported kernel symbols<br />&#160; 修剪未使用的导出内核符号</p>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Wed, 03 Aug 2022 14:37:44 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?pid=18#p18</guid>
		</item>
	</channel>
</rss>
