chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

commit 47d00104f7549eaa2c16d9fa8cbd68f23b7ec0ca
parent 79ed106ce97a04a90a281a9d76f783b1b5c01e14
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Sat, 21 Nov 2026 16:26:07 +0000

repo: chamesle-base r15, kernel hardening; handbook 6.10

Diffstat:
Mdocs/docs.html | 2+-
Mdocs/handbook-base.html | 4++++
Mdocs/handbook-files.html | 1+
Mdocs/repo/x86/APKINDEX.tar.gz | 0
Ddocs/repo/x86/chamesle-base-20261121-r14.apk | 0
Adocs/repo/x86/chamesle-base-20261121-r15.apk | 0
Mdocs/repo/x86/mag-0.3.apk | 0
Mdocs/repo/x86_64/APKINDEX.tar.gz | 0
Ddocs/repo/x86_64/chamesle-base-20261121-r14.apk | 0
Adocs/repo/x86_64/chamesle-base-20261121-r15.apk | 0
Mdocs/repo/x86_64/mag-0.3.apk | 0
Mdocs/repo/x86_64/rifle-0.2.apk | 0
12 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/docs/docs.html b/docs/docs.html @@ -56,7 +56,7 @@ <ul><li><a href="handbook-rifle.html#s5-1">5.1 What it is</a></li><li><a href="handbook-rifle.html#s5-2">5.2 The tools</a></li><li><a href="handbook-rifle.html#s5-3">5.3 Building</a></li><li><a href="handbook-rifle.html#s5-4">5.4 Tests</a></li></ul> </li> <li><a href="handbook-base.html">The base system</a> -<ul><li><a href="handbook-base.html#s6-1">6.1 init</a></li><li><a href="handbook-base.html#s6-2">6.2 rc, init.conf and the services</a></li><li><a href="handbook-base.html#s6-3">6.3 Shutting down</a></li><li><a href="handbook-base.html#s6-4">6.4 The files in /etc</a></li><li><a href="handbook-base.html#s6-5">6.5 Users</a></li><li><a href="handbook-base.html#s6-6">6.6 udev and modules</a></li><li><a href="handbook-base.html#s6-7">6.7 Networking</a></li><li><a href="handbook-base.html#s6-8">6.8 Wireless</a></li><li><a href="handbook-base.html#s6-9">6.9 Mounting and disks</a></li></ul> +<ul><li><a href="handbook-base.html#s6-1">6.1 init</a></li><li><a href="handbook-base.html#s6-2">6.2 rc, init.conf and the services</a></li><li><a href="handbook-base.html#s6-3">6.3 Shutting down</a></li><li><a href="handbook-base.html#s6-4">6.4 The files in /etc</a></li><li><a href="handbook-base.html#s6-5">6.5 Users</a></li><li><a href="handbook-base.html#s6-6">6.6 udev and modules</a></li><li><a href="handbook-base.html#s6-7">6.7 Networking</a></li><li><a href="handbook-base.html#s6-8">6.8 Wireless</a></li><li><a href="handbook-base.html#s6-9">6.9 Mounting and disks</a></li><li><a href="handbook-base.html#s6-10">6.10 Kernel settings</a></li></ul> </li> <li><a href="handbook-kernel.html">The kernel and firmware</a> <ul><li><a href="handbook-kernel.html#s7-1">7.1 The kernel package</a></li><li><a href="handbook-kernel.html#s7-2">7.2 Updating</a></li><li><a href="handbook-kernel.html#s7-3">7.3 Modules</a></li><li><a href="handbook-kernel.html#s7-4">7.4 Firmware</a></li><li><a href="handbook-kernel.html#s7-5">7.5 The initramfs</a></li></ul> diff --git a/docs/handbook-base.html b/docs/handbook-base.html @@ -140,6 +140,10 @@ mount -t vfat -o ro /dev/sdb1 /mnt/usb umount /mnt/usb</pre> <p><code>mount</code> and <code>umount</code> are busybox's; <code>lsblk</code>, <code>blkid</code>, <code>sfdisk</code> and <code>cfdisk</code> are packages of their own, <code>mkfs.ext4</code> and <code>fsck.ext4</code> are e2fsprogs', <code>mkfs.fat</code> is dosfstools', <code>zpool</code> and <code>zfs</code> are <code>zfs</code>.</p> <p>On a ZFS root, <code>/etc/rc</code> runs <code>zfs mount -a</code> right after <code>mount -a</code>, which mounts <code>rpool/home</code> and <code>rpool/var</code>; the root itself was mounted by the initramfs.</p> +<h2 id="s6-10">6.10 Kernel settings</h2> +<p><code>/etc/rc</code> loads every <code>/etc/sysctl.d/*.conf</code> and <code>/etc/sysctl.conf</code> at boot. The base ships <code>/etc/sysctl.d/10-chamesle.conf</code>: kernel addresses and <code>dmesg</code> are for root only (<code>doas dmesg</code>), a process may <code>ptrace</code> only its own children, users get no BPF, links and files in sticky directories like <code>/tmp</code> are protected, setuid programs leave no core dumps, and the network takes no redirects or source routes and filters spoofed addresses. To change one, put it in a file of your own that sorts later, <code>/etc/sysctl.d/90-local.conf</code>:</p> +<pre>kernel.dmesg_restrict = 0</pre> +<p><code>sysctl -a</code> lists them all, <code>sysctl -w name=value</code> changes one until the next boot.</p> <hr> <p><a href="handbook-rifle.html">&larr; rifle</a> | <a href="docs.html">Contents</a> | <a href="handbook-kernel.html">The kernel and firmware &rarr;</a></p> </main> diff --git a/docs/handbook-files.html b/docs/handbook-files.html @@ -48,6 +48,7 @@ <tr><td><code>/etc/profile</code></td><td><code>PATH</code>, <code>umask</code></td></tr> <tr><td><code>/etc/passwd</code>, <code>/etc/shadow</code>, <code>/etc/group</code>, <code>/etc/shells</code></td><td>accounts, passwords, groups, login shells</td></tr> <tr><td><code>/etc/fstab</code></td><td>file systems</td></tr> +<tr><td><code>/etc/sysctl.d/</code></td><td>kernel settings loaded at boot (6.10)</td></tr> <tr><td><code>/etc/os-release</code></td><td><code>NAME=Chamesle</code>, <code>ID=chamesle</code></td></tr> <tr><td><code>/etc/mag/</code></td><td><code>repos</code>, <code>keys/</code>, <code>arch</code></td></tr> <tr><td><code>/etc/mkinitfs/mkinitfs.conf</code></td><td>what goes into the initramfs</td></tr> diff --git a/docs/repo/x86/APKINDEX.tar.gz b/docs/repo/x86/APKINDEX.tar.gz Binary files differ. diff --git a/docs/repo/x86/chamesle-base-20261121-r14.apk b/docs/repo/x86/chamesle-base-20261121-r14.apk Binary files differ. diff --git a/docs/repo/x86/chamesle-base-20261121-r15.apk b/docs/repo/x86/chamesle-base-20261121-r15.apk Binary files differ. diff --git a/docs/repo/x86/mag-0.3.apk b/docs/repo/x86/mag-0.3.apk Binary files differ. diff --git a/docs/repo/x86_64/APKINDEX.tar.gz b/docs/repo/x86_64/APKINDEX.tar.gz Binary files differ. diff --git a/docs/repo/x86_64/chamesle-base-20261121-r14.apk b/docs/repo/x86_64/chamesle-base-20261121-r14.apk Binary files differ. diff --git a/docs/repo/x86_64/chamesle-base-20261121-r15.apk b/docs/repo/x86_64/chamesle-base-20261121-r15.apk Binary files differ. diff --git a/docs/repo/x86_64/mag-0.3.apk b/docs/repo/x86_64/mag-0.3.apk Binary files differ. diff --git a/docs/repo/x86_64/rifle-0.2.apk b/docs/repo/x86_64/rifle-0.2.apk Binary files differ.