diff --git a/sys-kernel/tirdad/Manifest b/sys-kernel/tirdad/Manifest new file mode 100644 index 0000000000..64592ddfbe --- /dev/null +++ b/sys-kernel/tirdad/Manifest @@ -0,0 +1 @@ +DIST tirdad-0_p20200926.zip 16985 BLAKE2B c0b8e289e6731ca86d1c29dce256468d634167bde9196f620a037cccb4737788b54dd6544c79ecff6c61dd4f4c62920a541e1dbe8db301c948b7923ae82be393 SHA512 4bff32fd61712bb48cb9f723193f3f7f9a35c7cd537ff2b0736f7b0169e74016d69479e24464084e19a749ce67b33278421b9b2a80c007cf53f6836e3126427d diff --git a/sys-kernel/tirdad/metadata.xml b/sys-kernel/tirdad/metadata.xml new file mode 100644 index 0000000000..01509ae9e3 --- /dev/null +++ b/sys-kernel/tirdad/metadata.xml @@ -0,0 +1,17 @@ + + + + +tirdad (pronounce /tērdäd/) is a kernel module to hot-patch the Linux +kernel to generate random TCP Initial Sequence Numbers for IPv4 TCP connections. You can +refer to this bog post to get familiar with the original issue: +https://bitguard.wordpress.com/?p=982 + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + 0xsirus/tirdad + + diff --git a/sys-kernel/tirdad/tirdad-0_p20200926.ebuild b/sys-kernel/tirdad/tirdad-0_p20200926.ebuild new file mode 100644 index 0000000000..bf5b6956ef --- /dev/null +++ b/sys-kernel/tirdad/tirdad-0_p20200926.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit linux-mod +COMMIT="9a0e137ae05dd1aa05c20750975598e4dac77dbf" +DESCRIPTION="kernel module for random ISN generation" +HOMEPAGE="https://github.com/0xsirus/tirdad" +SRC_URI="https://github.com/0xsirus/tirdad/archive/${COMMIT}.zip -> ${P}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="app-arch/unzip" +S="${WORKDIR}/${PN}-${COMMIT}" + +MODULE_NAMES="tirdad(misc:${S}:${S}/module)" +BUILD_TARGETS="all" + +src_compile() { + linux-mod_src_compile || die +} + +src_install() { + einstalldocs + linux-mod_src_install || die +}