<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question World Write Permission on cgroup.event_control in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/World-Write-Permission-on-cgroup-event-control/m-p/281573#M209449</link>
    <description>&lt;P&gt;I like to change file permissions for security hardening&lt;/P&gt;
&lt;P&gt;These files have 'w' bit in others, is it possible to change to 220 manually?&lt;/P&gt;
&lt;P&gt;&lt;FONT size="-1"&gt;--w--w--&lt;STRONG&gt;w&lt;/STRONG&gt;- 1 root root 0 Oct 29 18:41 /var/run/cloudera-scm-agent/cgroups/memory/&amp;lt;service_name&amp;gt;/cgroup.event_control&lt;BR /&gt;--w--w--&lt;STRONG&gt;w&lt;/STRONG&gt;- 1 root root 0 Oct 29 18:43 /var/run/cloudera-scm-agent/cgroups/memory/&amp;lt;service_name&amp;gt;/cgroup.event_control&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="-1"&gt;These files are newly created every time that the service is started, can permissions be set to 220 permanently instead of manually?&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="-1"&gt;This change may cause problems with the service?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="-1"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 19:01:22 GMT</pubDate>
    <dc:creator>luisfeg</dc:creator>
    <dc:date>2019-10-29T19:01:22Z</dc:date>
    <item>
      <title>World Write Permission on cgroup.event_control</title>
      <link>https://community.cloudera.com/t5/Support-Questions/World-Write-Permission-on-cgroup-event-control/m-p/281573#M209449</link>
      <description>&lt;P&gt;I like to change file permissions for security hardening&lt;/P&gt;
&lt;P&gt;These files have 'w' bit in others, is it possible to change to 220 manually?&lt;/P&gt;
&lt;P&gt;&lt;FONT size="-1"&gt;--w--w--&lt;STRONG&gt;w&lt;/STRONG&gt;- 1 root root 0 Oct 29 18:41 /var/run/cloudera-scm-agent/cgroups/memory/&amp;lt;service_name&amp;gt;/cgroup.event_control&lt;BR /&gt;--w--w--&lt;STRONG&gt;w&lt;/STRONG&gt;- 1 root root 0 Oct 29 18:43 /var/run/cloudera-scm-agent/cgroups/memory/&amp;lt;service_name&amp;gt;/cgroup.event_control&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="-1"&gt;These files are newly created every time that the service is started, can permissions be set to 220 permanently instead of manually?&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="-1"&gt;This change may cause problems with the service?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="-1"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 19:01:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/World-Write-Permission-on-cgroup-event-control/m-p/281573#M209449</guid>
      <dc:creator>luisfeg</dc:creator>
      <dc:date>2019-10-29T19:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: World Write Permission on cgroup.event_control</title>
      <link>https://community.cloudera.com/t5/Support-Questions/World-Write-Permission-on-cgroup-event-control/m-p/281580#M209455</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70712"&gt;@luisfeg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The files are only listed in the security scan out if the cgroups feature is in effect (CM -&amp;gt; Hosts -&amp;gt; Configuration -&amp;gt; "Enable Cgroup-based Resource Management"). The default permission of the cgroup_event_control files are indeed world writable without any other permission bit set. However, this has not too much effect in accordance with this document which explains why cgroup files are typically world writable: &lt;A href="https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt" target="_blank" rel="noopener"&gt;https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This seems to be created by the supervisor code cgroups feature, and Red Hat appears to have a subscription article on a similar concern elsewhere on the file system: &lt;A href="https://access.redhat.com/solutions/377043" target="_blank" rel="noopener"&gt;https://access.redhat.com/solutions/377043&lt;/A&gt;.&amp;nbsp; &amp;nbsp;These files being world writable is an inherent part of Linux cgroups and users being able to use the cgroup API.&amp;nbsp; Cloudera can only use this cgroup feature if the user configures it explicitly thru Cloudera Manager.&amp;nbsp; As Red Hat states in the document mentioned above:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Changing the world writable bit is not recommended on these files as it would break notification features of the cgroup API. Changing the permissions would have no effect. Cgroups has it's own pseudo-file-system and manages all the files therein. Each time the cgconfig init script is run, the world writable bit will be set on these files. The cgroup.event_control files are world writeable. This is because they are used in conjunction with the cgroups notification API to allow notifications to be sent about a changing status in the control group."&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 18:55:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/World-Write-Permission-on-cgroup-event-control/m-p/281580#M209455</guid>
      <dc:creator>Robert Justice</dc:creator>
      <dc:date>2019-10-29T18:55:10Z</dc:date>
    </item>
  </channel>
</rss>

