mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-02 10:35:08 -05:00
Set SELinux from disabled to permissive (#474)
This commit is contained in:
parent
46a8e8d424
commit
9e12e004bb
@ -27,7 +27,6 @@ RemainAfterExit=yes
|
||||
Restart=on-failure
|
||||
EnvironmentFile=/run/constellation.env
|
||||
Environment=PATH=/run/state/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
|
||||
ExecStartPre=-setenforce Permissive
|
||||
ExecStart=/run/state/bin/bootstrapper
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
3
image/mkosi.conf.d/selinux.conf
Normal file
3
image/mkosi.conf.d/selinux.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[Output]
|
||||
# set selinux to permissive
|
||||
KernelCommandLine=!selinux=0 selinux=1 enforcing=0
|
@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -euxo pipefail
|
||||
|
||||
# set selinux to permissive
|
||||
sed -i 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config
|
||||
|
||||
# backport of https://github.com/dracutdevs/dracut/commit/dcbe23c14d13ca335ad327b7bb985071ca442f12
|
||||
sed -i 's/WantedBy=multi-user.target/WantedBy=basic.target/' /usr/lib/systemd/system/systemd-resolved.service
|
||||
|
Loading…
x
Reference in New Issue
Block a user