summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2023-01-03 23:56:37 -0600
committerWilliam Hubbs <williamh@gentoo.org>2023-01-03 23:56:37 -0600
commite81dfb07f53e817a83e3c3a7c247cdb57a507fdf (patch)
tree7a4f90ce85d55ba7ec78ed8795bd21031e26e856 /lib
parentversion 2.9 (diff)
downloadbaselayout-e81dfb07f53e817a83e3c3a7c247cdb57a507fdf.tar.gz
baselayout-e81dfb07f53e817a83e3c3a7c247cdb57a507fdf.tar.bz2
baselayout-e81dfb07f53e817a83e3c3a7c247cdb57a507fdf.zip
drop OS specific support
This is no longer needed since we have dropped support for *BSD. Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/modprobe.d/aliases.conf42
-rw-r--r--lib/modprobe.d/i386.conf4
-rw-r--r--lib/sysctl.d/00protected-links.conf2
3 files changed, 48 insertions, 0 deletions
diff --git a/lib/modprobe.d/aliases.conf b/lib/modprobe.d/aliases.conf
new file mode 100644
index 00000000..202a93b3
--- /dev/null
+++ b/lib/modprobe.d/aliases.conf
@@ -0,0 +1,42 @@
+# Aliases to tell insmod/modprobe which modules to use
+
+# Uncomment the network protocols you don't want loaded:
+# alias net-pf-1 off # Unix
+# alias net-pf-2 off # IPv4
+# alias net-pf-3 off # Amateur Radio AX.25
+# alias net-pf-4 off # IPX
+# alias net-pf-5 off # DDP / appletalk
+# alias net-pf-6 off # Amateur Radio NET/ROM
+# alias net-pf-9 off # X.25
+# alias net-pf-10 off # IPv6
+# alias net-pf-11 off # ROSE / Amateur Radio X.25 PLP
+# alias net-pf-19 off # Acorn Econet
+
+alias char-major-10-175 agpgart
+alias char-major-10-200 tun
+alias char-major-81 bttv
+alias char-major-108 ppp_generic
+alias /dev/ppp ppp_generic
+alias tty-ldisc-3 ppp_async
+alias tty-ldisc-14 ppp_synctty
+alias ppp-compress-21 bsd_comp
+alias ppp-compress-24 ppp_deflate
+alias ppp-compress-26 ppp_deflate
+
+# Crypto modules
+alias loop-xfer-gen-0 loop_gen
+alias loop-xfer-3 loop_fish2
+alias loop-xfer-gen-10 loop_gen
+alias cipher-2 des
+alias cipher-3 fish2
+alias cipher-4 blowfish
+alias cipher-6 idea
+alias cipher-7 serp6f
+alias cipher-8 mars6
+alias cipher-11 rc62
+alias cipher-15 dfc2
+alias cipher-16 rijndael
+alias cipher-17 rc5
+
+# Support for i2c and lm_sensors
+alias char-major-89 i2c-dev
diff --git a/lib/modprobe.d/i386.conf b/lib/modprobe.d/i386.conf
new file mode 100644
index 00000000..b89459f1
--- /dev/null
+++ b/lib/modprobe.d/i386.conf
@@ -0,0 +1,4 @@
+alias parport_lowlevel parport_pc
+alias char-major-10-144 nvram
+alias binfmt-0064 binfmt_aout
+alias char-major-10-135 rtc
diff --git a/lib/sysctl.d/00protected-links.conf b/lib/sysctl.d/00protected-links.conf
new file mode 100644
index 00000000..5e4d7c6f
--- /dev/null
+++ b/lib/sysctl.d/00protected-links.conf
@@ -0,0 +1,2 @@
+fs.protected_symlinks = 1
+fs.protected_hardlinks = 1