Skip to content

Commit

Permalink
Merge pull request #12160 from alanmcanonical/align_kernel_module_false
Browse files Browse the repository at this point in the history
Additional updates in kernel_module_disabled template
  • Loading branch information
jan-cerny authored Jul 19, 2024
2 parents 669ff34 + 6808ad1 commit 0671459
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 0671459

Please sign in to comment.