{"description": "The file <tt>/etc/init.d/functions</tt> includes initialization\nparameters for most or all daemons started at boot time. Many daemons\non the system already individually restrict themselves to\na umask of <tt>077</tt> in their own init scripts. By default, the umask of\n<tt>022</tt> is set which prevents creation of group- or world-writable files.\nTo set the umask for daemons expected by the profile, edit the following line:\n<pre>umask <i><sub idref=\"var_umask_for_daemons\" /></i></pre>", "rationale": "The umask influences the permissions assigned to files created by a\nprocess at run time. An unnecessarily permissive umask could result in files\nbeing created with insecure permissions.", "severity": "unknown", "references": {"cis-csc": ["12", "13", "14", "15", "16", "18", "3", "5"], "cobit5": ["APO01.06", "DSS05.04", "DSS05.07", "DSS06.02"], "isa-62443-2009": ["4.3.3.7.3"], "isa-62443-2013": ["SR 2.1", "SR 5.2"], "iso27001-2013": ["A.10.1.1", "A.11.1.4", "A.11.1.5", "A.11.2.1", "A.13.1.1", "A.13.1.3", "A.13.2.1", "A.13.2.3", "A.13.2.4", "A.14.1.2", "A.14.1.3", "A.6.1.2", "A.7.1.1", "A.7.1.2", "A.7.3.1", "A.8.2.2", "A.8.2.3", "A.9.1.1", "A.9.1.2", "A.9.2.3", "A.9.4.1", "A.9.4.4", "A.9.4.5"], "nist": ["CM-6(a)", "AC-6(1)"], "nist-csf": ["PR.AC-4", "PR.DS-5"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "it does not", "ocil": "To check the value of the <tt>umask</tt>, run the following command:\n<pre>$ grep umask /etc/init.d/functions</pre>\nThe output should show <tt><sub idref=\"var_umask_for_daemons\" /></tt>.", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [{"functionality": "Setting the umask to too restrictive a setting can cause serious errors at\nruntime."}], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": [], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Set Daemon Umask", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/restrictions/daemon_umask/umask_for_daemons/rule.yml", "template": null}