mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
optionally enable unprivileged containers for non-root users
This is enabled by default in the vanilla kernel and disabled by default in the hardened kernel.
This commit is contained in:
parent
b9353f27f3
commit
7e99a97eaf
4 changed files with 13 additions and 0 deletions
|
|
@ -312,4 +312,7 @@ units:
|
|||
pkgfile:
|
||||
run_on: trusted
|
||||
|
||||
hardened:
|
||||
enable_namespaces: true
|
||||
|
||||
kernel_parameters: "quiet consoleblank=60 i915.enable_psr=2"
|
||||
|
|
|
|||
1
roles/hardened/files/99-userns.conf
Normal file
1
roles/hardened/files/99-userns.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
kernel.unprivileged_userns_clone = 1
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: grub }
|
||||
- { role: sysctl }
|
||||
|
|
|
|||
|
|
@ -7,3 +7,11 @@
|
|||
state: present
|
||||
notify:
|
||||
- rebuild grub
|
||||
|
||||
- name: Enable unprivileged containers for non-root users
|
||||
copy:
|
||||
src: 99-userns.conf
|
||||
dest: /etc/sysctl.d/99-userns.conf
|
||||
notify:
|
||||
- reload sysctl
|
||||
when: hardened is defined and hardened.enable_namespaces
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue