disable io_uring without CAP_SYS_ADMIN or io_uring group

This commit is contained in:
Daniel Micay 2024-07-01 23:11:17 -04:00
parent 6e6957876e
commit 01201c0ece
2 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,7 @@ rsync -cv nftables/nftables-${hosts_firewall[$host]:-web}.conf $remote:/mnt/etc/
ssh $remote "arch-chroot /mnt systemctl enable chronyd.service fstrim.timer logrotate.timer nftables.service plocate-updatedb.timer systemd-networkd.service sshd.service unbound.service"
ssh $remote "arch-chroot /mnt systemctl disable remote-fs.target systemd-network-generator.service"
ssh $remote "arch-chroot /mnt groupadd -g 2000 io_uring"
ssh $remote "umask 077 && dd if=/dev/random of=/mnt/swapfile bs=1M count=$swap status=progress"

View File

@ -53,6 +53,9 @@ kernel.unprivileged_userns_clone = 0
kernel.unprivileged_bpf_disabled = 1
net.core.bpf_jit_harden = 2
kernel.io_uring_disabled = 1
kernel.io_uring_group = 2000
kernel.kexec_load_disabled = 1
fs.protected_regular = 2