add selinux install hook

This commit is contained in:
manuel 2023-10-05 11:52:01 +00:00
parent 9dc773431f
commit ca212d8e10
1 changed files with 21 additions and 0 deletions

View File

@ -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."