-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Cassany <[email protected]>
- Loading branch information
1 parent
00d103d
commit 95aeb1d
Showing
7 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
requires: | ||
- name: "base" | ||
category: "distro" | ||
version: ">=0" | ||
|
||
prelude: | ||
{{ if .Values.distribution }} | ||
{{if eq .Values.distribution "opensuse" }} | ||
- zypper in -y wget sed bzip2 && zypper install -y -t pattern devel_basis | ||
{{else if eq .Values.distribution "fedora" }} | ||
- dnf install -y wget sed "@Development Tools" | ||
{{end}} | ||
{{end}} | ||
- wget https://raw.githubusercontent.com/wiki/SELinuxProject/refpolicy/files/refpolicy-{{.Values.policy_version}}.tar.bz2 -O refpolicy-src.tar.bz2 | ||
- tar xaf refpolicy-src.tar.bz2 | ||
|
||
steps: | ||
{{ if .Values.distribution }} | ||
{{if eq .Values.distribution "opensuse" }} | ||
- zypper in -y selinux-tools audit policycoreutils restorecond python-xml | ||
{{end}} | ||
{{end}} | ||
- cp config /etc/selinux/config | ||
- cd refpolicy && make install-src | ||
- cd /etc/selinux/refpolicy/src/policy && make conf && \ | ||
{{ if .Values.distribution }} | ||
{{if eq .Values.distribution "opensuse" }} | ||
sed -e "s|^.*DISTRO *=.*$|DISTRO = suse|g" \ | ||
{{else if eq .Values.distribution "fedora" }} | ||
sed -e "s|^.*DISTRO *=.*$|DISTRO = redhat|g" \ | ||
{{end}} | ||
{{end}} | ||
-e "s|^.*DIRECT_INITRC *=.*$|DIRECT_INITRC=y|g" -i build.conf | ||
- cd /etc/selinux/refpolicy/src/policy && make load |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file controls the state of SELinux on the system. | ||
# SELINUX= can take one of these three values: | ||
# enforcing - SELinux security policy is enforced. | ||
# permissive - SELinux prints warnings instead of enforcing. | ||
# disabled - No SELinux policy is loaded. | ||
SELINUX=permissive | ||
# SELINUXTYPE= can take one of these two values: | ||
# targeted - Targeted processes are protected, | ||
# mls - Multi Level Security protection. | ||
SELINUXTYPE=refpolicy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: "refpolicy" | ||
category: "system" | ||
version: "0.0.4" | ||
|
||
policy_version: "2.20180114" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,5 +35,6 @@ packages: >- | |
haveged | ||
tar | ||
rsync | ||
timezone | ||
kernel_package: kernel-default |