Skip to content

Commit

Permalink
Add fapolicyd to Foreman and Smart Proxy (theforeman#2616)
Browse files Browse the repository at this point in the history
For version 3.9 and above, we have started supporting fapolicyd on the Project Server as well as Smart Proxy Server. The procedure to install and enable faplicyd for both of them remains the same. You can install fapolicyd along with fresh installation of Project or SmartProxy, or you can install it on existing Project or SmartProxy.
  • Loading branch information
mjivraja committed Dec 6, 2023
1 parent 0ac7968 commit 3c0349d
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 0 deletions.
4 changes: 4 additions & 0 deletions guides/common/assembly_installing-capsule-server.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ ifdef::foreman-el,foreman-deb[]
include::modules/proc_configuring-repositories.adoc[leveloffset=+1]
endif::[]

include::modules/con_using-fapolicyd-on-server.adoc[leveloffset=+1]

include::modules/proc_installing-fapolicyd-on-server.adoc[leveloffset=+2]

// Installing {SmartProxyServer} Packages
include::modules/proc_installing-capsule-server-packages.adoc[leveloffset=+1]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ include::modules/proc_configuring-the-base-operating-system-with-offline-reposit

include::modules/proc_installing-from-the-offline-repositories.adoc[leveloffset=+1]

include::modules/con_using-fapolicyd-on-server.adoc[leveloffset=+1]

include::modules/proc_installing-fapolicyd-on-server.adoc[leveloffset=+2]

include::modules/proc_resolving-package-dependency-errors.adoc[leveloffset=+1]

include::modules/proc_synchronizing-the-system-clock-with-chronyd.adoc[leveloffset=+1]
Expand Down
4 changes: 4 additions & 0 deletions guides/common/assembly_installing-server-connected.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ endif::[]

include::modules/proc_configuring-repositories.adoc[leveloffset=+1]

include::modules/con_using-fapolicyd-on-server.adoc[leveloffset=+1]

include::modules/proc_installing-fapolicyd-on-server.adoc[leveloffset=+2]

include::modules/proc_installing-the-satellite-server-packages.adoc[leveloffset=+1]

ifdef::foreman-el,katello,satellite[]
Expand Down
12 changes: 12 additions & 0 deletions guides/common/modules/con_using-fapolicyd-on-server.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[id="using-fapolicyd-on-server_{context}"]
ifeval::["{context}" == "{project-context}"]
= Optional: Using fapolicyd on {ProjectServer}
endif::[]
ifeval::["{context}" == "{smart-proxy-context}"]
= Optional: Using fapolicyd on {SmartProxyServer}
endif::[]

By enabling `fapolicyd` on your {ProjectServer}, you can provide an additional layer of security by monitoring and controlling access to files and directories.
The fapolicyd daemon uses the RPM database as a repository of trusted binaries and scripts.

You can turn on or off the fapolicyd on your {ProjectServer} or {SmartProxyServer} at any point.
49 changes: 49 additions & 0 deletions guides/common/modules/proc_installing-fapolicyd-on-server.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[id="installing-fapolicyd-on-server_{context}"]
ifeval::["{context}" == "{project-context}"]
= Installing fapolicyd on {ProjectServer}
endif::[]
ifeval::["{context}" == "{smart-proxy-context}"]
= Installing fapolicyd on {SmartProxyServer}
endif::[]

ifeval::["{context}" == "{project-context}"]
You can install `fapolicyd` along with {ProjectServer} or can be installed on an existing {ProjectServer}.
If you are installing `fapolicyd` along with the new {ProjectServer}, the installation process will detect the fapolicyd in your {EL} host and deploy the {ProjectServer} rules automatically.
endif::[]
ifeval::["{context}" == "{smart-proxy-context}"]
You can install `fapolicyd` along with {SmartProxyServer} or can be installed on an existing {SmartProxyServer}.
If you are installing `fapolicyd` along with the new {SmartProxyServer}, the installation process will detect the fapolicyd in your {EL} host and deploy the {SmartProxyServer} rules automatically.
endif::[]

.Prerequisite
* Ensure your host has access to the BaseOS repositories of {EL}.
.Procedure
. Install fapolicyd:
+
[options="nowrap" subs="+quotes,attributes"]
----
ifndef::foreman-deb[]
# dnf install fapolicyd
endif::[]
----
. Start the `fapolicyd` service:
+
[options="nowrap" subs="+quotes,attributes"]
----
# systemctl enable --now fapolicyd
----

.Verification
* Verify that the `fapolicyd` service is running correctly:
+
[options="nowrap" subs="+quotes"]
----
# systemctl status fapolicyd
----
.New {ProjectServer} or {SmartProxyServer} installations
In case of new {ProjectServer} or {SmartProxyServer} installation, follow the standard installation procedures after installing and enabling fapolicyd on your {EL} host.

.Additional resources
For more information on fapolicyd, see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/security_hardening/assembly_blocking-and-allowing-applications-using-fapolicyd_security-hardening#doc-wrapper[Blocking and allowing applications using fapolicyd] in _Red Hat Enterprise Linux 8 Security hardening_.

0 comments on commit 3c0349d

Please sign in to comment.