Skip to content

Commit

Permalink
Only try to apply grsec_lock once
Browse files Browse the repository at this point in the history
Currently we specify both `sysctl_set: yes` and `reload: yes` when
setting sysctl settings, which ends up with it being applied twice,
first with `sysctl -w` (sysctl_set) and then through `sysctl -p`
(reload).

With noble/Linux 6.6, setting the lock twice errors out, so just enable
it once with `sysctl -p`. This is also closer to what the kernel will do
normally when booting in which the whole file is loaded at once.

Refs #7323.
  • Loading branch information
legoktm committed Nov 23, 2024
1 parent 21ee737 commit 6ffc52a
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
sysctl:
name: "{{ item.name }}"
value: "{{ item.value }}"
sysctl_set: yes
state: present
reload: yes
with_items: "{{ grsec_sysctl_flags }}"
Expand Down

0 comments on commit 6ffc52a

Please sign in to comment.