-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remount-secure
: use procfs
mount option subset
(hide-hardware-info.service
)
#205
Comments
I have done extensive testing. Nothing seem to break. If remounting is done too early tho, it won't boot. I don't know which service is the reason. But this is miles ahead of manually setting permissions under /proc, which is non persistent. Also when it comes to /proc/kallsyms, I'm pretty sure setting the kernel parameter kernel.kptr_restrict=2 already does the trick for the most part. Meaning that addresses are hidden. I'm pretty positive that what remains unhidden here is meaningless for the most part. |
hide-hardware-info.service
: use procfs
mount option subset
remount-secure
: use procfs
mount option subset
(hide-hardware-info.service
:)
On a second thought this feature might be more suitable for remount-secure than hide-hardware-info. |
I ran some testing on my systems (server VM only, no desktop): Test methodI applied the patch like this, partially related to #208:
For a control test against all listed issues below, remove "subset=pid" from /etc/systemd/system/proc-hidepid.service.d/override.conf Kicksecure issues
Systemd issuesSystemd sandboxing seems badly broken. Some useful features are not working: running systemd uses Systemd permits use of cgroups to add CPU/Memory usage restrictions: Impacted services & detection method:
Docker Issues and possible sandbox software issuesA hardened docker container using Google GVisor fails when it cannot find A normal docker container fails to start when it cannot find Extra notesTypical namespaces are not broken as I did not test subset=pid with |
This is also somewhat strange, but the system suddenly stops responding to ACPI power button events when booted with subset=pid. Typically a shutdown is initiated when subset=pid is not set, at least on my server VMs. Nothing in dmesg or syslog indicates issues. |
remount-secure
: use procfs
mount option subset
(hide-hardware-info.service
:)remount-secure
: use procfs
mount option subset
(hide-hardware-info.service
)
Originally posted by @monsieuremre in #172 (comment)
The text was updated successfully, but these errors were encountered: