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