lsmod | grep -i rxrpc
if [[ "$?" -eq 0 ]]
then
 echo "Module rxrpc is loaded. Attempting to unload module"
 modprobe -r rxrpc || echo "rxrpc module couldn't be removed, try using \"modprobe -r -f rxrpc\" or reboot"
fi

# Using a here-doc gives us a permission denied error. Opting for echos instead
echo "blacklist rxrpc" > /etc/modprobe.d/10-CVE-2026-43500-fix.conf
echo "install rxrpc /bin/false" >> /etc/modprobe.d/10-CVE-2026-43500-fix.conf

echo "user.max_user_namespaces=0" > /etc/sysctl.d/CVE-2026-43284-fix.conf
/sbin/sysctl --system
