{"description": " To properly set the permissions of <code>/etc/ipsec.d</code>, run the command: <pre>$ sudo chmod 0700 /etc/ipsec.d</pre>", "rationale": "Setting correct permissions on the /etc/ipsec.d directory is important\nbecause this directory hosts Libreswan configuration. Protection of this\ndirectory is critical for system security. Restricting the permissions\nensures exclusive control of the Libreswan configuration.", "severity": "medium", "references": {"anssi": ["R50"]}, "control_references": {"anssi": ["R50"]}, "components": [], "identifiers": {}, "ocil_clause": "/etc/ipsec.d does not have unix mode 0700", "ocil": "To check the permissions of <code>/etc/ipsec.d</code>,\nrun the command:\n<pre>$ ls -l /etc/ipsec.d</pre>\nIf properly configured, the output should indicate the following permissions:\n<code>0700</code>", "oval_external_content": null, "fixtext": " Configure the \"/etc/ipsec.d\" file to \"0700\" by running the following command:\n$ sudo chmod 0700 /etc/ipsec.d", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /etc/ipsec.d file must have mode 0700 or less permissive to prevent unauthorized access.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "package[libreswan]", "platforms": ["package[libreswan]"], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": ["package_libreswan"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify Permissions On /etc/ipsec.d Directory", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/network/network-ipsec/directory_permissions_etc_ipsecd/rule.yml", "template": {"name": "file_permissions", "vars": {"filepath": "/etc/ipsec.d/", "filemode": "0700"}, "backends": {}}}