{"description": "The File Access Policy service should be enabled.\n\nThe <code>fapolicyd</code> service can be enabled with the following command:\n<pre>$ sudo systemctl enable fapolicyd.service</pre>", "rationale": "The <tt>fapolicyd</tt> service (File Access Policy Daemon)\nimplements application whitelisting to decide file access rights.", "severity": "medium", "references": {"nist": ["CM-6(a)", "SI-4(22)"], "ospp": ["FMT_SMF_EXT.1"], "srg": ["SRG-OS-000370-GPOS-00155", "SRG-OS-000368-GPOS-00154", "SRG-OS-000480-GPOS-00230"], "ism": ["1409"]}, "control_references": {"ism": ["1409"]}, "components": [], "identifiers": {}, "ocil_clause": "the service is not enabled", "ocil": "\n\nRun the following command to determine the current status of the\n<code>fapolicyd</code> service:\n<pre>$ sudo systemctl is-active fapolicyd</pre>\nIf the service is running, it should return the following: <pre>active</pre>", "oval_external_content": null, "fixtext": "To enable the fapolicyd service run the following command:\n\n$ sudo systemctl enable --now fapolicyd", "checktext": "", "vuldiscussion": "", "srg_requirement": "The Ubuntu 22.04 service fapolicyd must be enabled.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 fapolicy module must be enabled.", "vuldiscussion": "The organization must identify authorized software programs and permit execution of authorized software. The process used to identify software programs that are authorized to execute on organizational information systems is commonly referred to as allowlisting.\n\nUtilizing an allowlist provides a configuration management method for allowing the execution of only authorized software. Using only authorized software decreases risk by limiting the number of potential vulnerabilities. Verification of allowlisted software occurs prior to execution or at system startup.\n\nUser home directories/folders may contain information of a sensitive nature. Nonprivileged users should coordinate any sharing of information with an SA through shared resources.\n\nUbuntu 22.04 ships with many optional packages. One such package is a file access policy daemon called \"fapolicyd\". \"fapolicyd\" is a userspace daemon that determines access rights to files based on attributes of the process and file. It can be used to either blocklist or allowlist processes or file access.\n\nProceed with caution with enforcing the use of this daemon. Improper configuration may render the system nonfunctional. The \"fapolicyd\" API is not namespace aware and can cause issues when launching or running containers.", "checktext": "Verify that Ubuntu 22.04 fapolicyd is active with the following command:\n\n$ systemctl is-active fapolicyd\n\nactive\n\nIf fapolicyd module is not active, this is a finding.", "fixtext": "Enable the fapolicyd with the following command:\n\n$ systemctl enable --now fapolicyd"}}, "platform": null, "platforms": [], "sce_metadata": {"check-import": "stdout", "platform": ["multi_platform_all"], "environment": "any", "filename": "service_fapolicyd_enabled.sh", "relative_path": "ubuntu2204/checks/sce/service_fapolicyd_enabled.sh"}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Enable the File Access Policy Service", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/fapolicyd/service_fapolicyd_enabled/rule.yml", "template": {"name": "service_enabled", "vars": {"servicename": "fapolicyd"}, "backends": {}}}