<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=6910&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] kernel command line from pkg hardening-runtime with bug]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=6910</link>
		<description><![CDATA[The most recent posts in [SOLVED] kernel command line from pkg hardening-runtime with bug.]]></description>
		<lastBuildDate>Sat, 02 Nov 2024 21:56:17 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] kernel command line from pkg hardening-runtime with bug]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52833#p52833</link>
			<description><![CDATA[<p>the hardening-runtime package is out-of-date and should be uninstalled.</p><p>in particular, the boot option kaslr no longer exists as kaslr is the<br />default. however, there is a &#039;nokaslr&#039; kernel parameter:</p><div class="codebox"><pre><code>nokaslr         [KNL,EARLY]
                When CONFIG_RANDOMIZE_BASE is set, this disables
                kernel and module base offset ASLR (Address Space
                Layout Randomization).</code></pre></div><p>i have 6.10 kernel from backports and its boot options can be found here:<br />&#160; &#160;<a href="https://www.kernel.org/doc/html/v6.10/arch/x86/x86_64/boot-options.html" rel="nofollow">https://www.kernel.org/doc/html/v6.10/a … tions.html</a></p><p>the 6.10 kernel params can be found here:<br />&#160; &#160;<a href="https://www.kernel.org/doc/html/v6.10/admin-guide/kernel-parameters.html" rel="nofollow">https://www.kernel.org/doc/html/v6.10/a … eters.html</a></p><p>just change the kernel version in the above URLs to what your kernel is<br />and take a look.</p><p>a good, more up-to-date, hardening guide can be found here and here:<br />&#160; &#160;<a href="https://wiki.archlinux.org/title/Hardening_Guides" rel="nofollow">https://wiki.archlinux.org/title/Hardening_Guides</a><br />&#160; &#160;<a href="https://gist.github.com/dante-robinson/3a2178e43009c8267ac02387633ff8ca" rel="nofollow">https://gist.github.com/dante-robinson/ … 87633ff8ca</a></p><p>additionally, page_poison is no longer recommended and should be replaced<br />with &#039;init_on_alloc=1 init_on_free=1&#039; and, related to this, change to<br />slub_debug=ZF instead of slub_debug=FPZ</p><p>for reference, my personalised &#039;hardened&#039; grub command line is:</p><div class="codebox"><pre><code>   ipv6.disable=1 ia32_emulation=0 page_alloc.shuffle=1   \
   pti=on init_on_free=1 slab_nomerge slub_debug=ZF vsyscall=none&quot;</code></pre></div><p>on a practical note, hardening devuan/debian is really hard :-) so not<br />really worth it. the biggest weakness is the browser, not the kernel.<br />try to harden firefox (apparmor, firejail, VM) first.</p><p>if you are really motivated then checkout the firefox hardening guides<br />such as arkenfox user.js. this involves a lot of work and is for the paranoid.</p><p>if you are really interested in hardening linux then try to make the<br />system read-only. that&#039;s a nice, long-term project. see alpine linux.</p>]]></description>
			<author><![CDATA[dummy@example.com (grunchy)]]></author>
			<pubDate>Sat, 02 Nov 2024 21:56:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52833#p52833</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] kernel command line from pkg hardening-runtime with bug]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52824#p52824</link>
			<description><![CDATA[<p>Did that but result remains the same.<br />This stems from debian package hardening-runtime <br />which I installed some time ago. see there (if installed)</p><div class="codebox"><pre><code>cat /usr/share/doc/hardening-runtime/README.Debian</code></pre></div><div class="codebox"><pre><code>cat /etc/default/grub.d/01_hardening.cfg 
# Linux command line options recommended by the KSPP
# https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project/Recommended_Settings#kernel_command_line_options
GRUB_CMDLINE_LINUX_DEFAULT=&quot;$GRUB_CMDLINE_LINUX_DEFAULT kaslr pti=on slab_nomerge page_poison=1 slub_debug=FPZ nosmt&quot;

# Other interesting options are:
# - intel_iommu=on (sometimes intel_iommu=on,igfx_off) for enabing I/OMMU

# When done editing the file, rebuild grub configuration with: update-grub</code></pre></div><p>now must find out why kernel refuses its parameter</p>]]></description>
			<author><![CDATA[dummy@example.com (bai4Iej2need)]]></author>
			<pubDate>Fri, 01 Nov 2024 20:36:00 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52824#p52824</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] kernel command line from pkg hardening-runtime with bug]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52822#p52822</link>
			<description><![CDATA[<p>I would first of all check the complete contents of /etc/default/grub, and then try a </p><div class="codebox"><pre><code># update-grub</code></pre></div><p>Maybe something that is caused by the NVidea driver?</p><p>Checked on my system, I do not see such a thing with my AMD graphics.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Fri, 01 Nov 2024 19:05:16 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52822#p52822</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] kernel command line from pkg hardening-runtime with bug]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52821#p52821</link>
			<description><![CDATA[<div class="codebox"><pre><code>root@host /proc # cat cmdline 
BOOT_IMAGE=/boot/vmlinuz-6.1.0-26-amd64 root=UUID=...... ro nvidia-drm.modeset=1 quiet kaslr pti=on slab_nomerge page_poison=1 slub_debug=FPZ nosmt
root@host /proc # grep CMDLINE /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet&quot;
GRUB_CMDLINE_LINUX=&quot;nvidia-drm.modeset=1&quot;</code></pre></div><p>everything behind </p><div class="codebox"><pre><code>quiet</code></pre></div><p>is not in the grub settings. <br />Kernel complains because kaslr is unknown to it.</p><div class="codebox"><pre><code>2024-11-01T19:14:44.792356+01:00 host kernel: [    0.013968] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.0-26-amd64 root=UUID=e26f69aa-878b-46ca-8a16-c90ac9e06e62 ro nvidia-drm.modeset=1 quiet kaslr pti=on slab_nomerge page_poison=1 slub_debug=FPZ nosmt
2024-11-01T19:14:44.792357+01:00 host kernel: [    0.014070] Unknown kernel command line parameters &quot;kaslr BOOT_IMAGE=/boot/vmlinuz-6.1.0-26-amd64 pti=on&quot;, will be passed to user space.
2024-11-01T19:14:44.793285+01:00 host kernel: [    3.354434]     kaslr</code></pre></div><p>where do these settings come from and what I have to test and get rid off false entries?</p>]]></description>
			<author><![CDATA[dummy@example.com (bai4Iej2need)]]></author>
			<pubDate>Fri, 01 Nov 2024 18:50:27 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52821#p52821</guid>
		</item>
	</channel>
</rss>
