add selinux install hook
This commit is contained in:
parent
9dc773431f
commit
ca212d8e10
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
#
|
||||||
|
# SPDX-FileCopyrightText: 2023 PeppemrintOS Team (peppermintosteam@proton.me)
|
||||||
|
|
||||||
|
# Disable AppArmor service
|
||||||
|
systemctl disable apparmor --now
|
||||||
|
|
||||||
|
# Install SELinux packages
|
||||||
|
apt install policycoreutils selinux-utils selinux-basics selinux-policy-default policycoreutils-python-utils
|
||||||
|
|
||||||
|
# Activate SELinux
|
||||||
|
selinux-activate
|
||||||
|
|
||||||
|
# Reload the services
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
|
echo "Completed."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue