Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional updates in kernel_module_disabled template #12160

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shared/macros/01-general.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ Describe allowing access to a service in firewalld.
{{%- macro describe_module_disable(module) %}}
To configure the system to prevent the <code>{{{ module }}}</code>
kernel module from being loaded, add the following line to the file <code>/etc/modprobe.d/{{{ module }}}.conf</code>:
<pre>install {{{ module }}} /bin/true</pre>
<pre>install {{{ module }}} /bin/false</pre>
{{% if "ol" in product or product in ["rhel8"] %}}
To configure the system to prevent the <code>{{{ module }}}</code> from being used,
add the following line to file <code>/etc/modprobe.d/{{{ module }}}.conf</code>:
Expand Down
2 changes: 1 addition & 1 deletion shared/macros/10-ocil.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ ocil_clause: '"{{{ part }}} is not a mountpoint" is returned'
{{%- macro ocil_module_disable(module) %}}
If the system is configured to prevent the loading of the <code>{{{ module }}}</code> kernel module,
it will contain lines inside any file in <code>/etc/modprobe.d</code> or the deprecated<code> /etc/modprobe.conf</code>.
These lines instruct the module loading system to run another program (such as <code>/bin/true</code>) upon a module <code>install</code> event.
These lines instruct the module loading system to run another program (such as <code>/bin/false</code>) upon a module <code>install</code> event.
{{% if "ol" in product or product in ["rhel8"] %}}
These lines can also instruct the module loading system to ignore the <code>{{{ module }}}</code> kernel module via <code>blacklist</code> keyword.
{{% endif %}}
Expand Down
Loading