#!/bin/sh

set -e

case "${1}" in
	install)

cat > /etc/modprobe.d/CVE-2026-43500.conf << EOF
# /etc/modprobe.d/CVE-2026-43500.conf

# Name: Dirty Frag (Part 2)
# URL:  https://github.com/V4bel/dirtyfrag

blacklist rxrpc
install rxrpc /bin/false
EOF

		rmmod rxrpc > /dev/null 2>&1 || true

		echo 3 > /proc/sys/vm/drop_caches
		;;

	remove)
		rm -f /etc/modprobe.d/CVE-2026-43284.conf
		;;
esac
