<?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>i.MX ProcessorsのトピックRe: Android 9 Pie - Sepolicy</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Android-9-Pie-Sepolicy/m-p/1204701#M167015</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sepolicy has three modes:&lt;STRONG&gt;Enforcing,&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Permissive,Disabled&lt;/STRONG&gt;.You can use&lt;STRONG&gt; getenforce&lt;/STRONG&gt; to see which mode it run.In/etc/selinux/config you can set sepolicy mode and i think you can set&amp;nbsp;&lt;STRONG&gt;Permissive,&lt;/STRONG&gt;the sepolicy will show avc messages but will not stop the scripts you add.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2020 02:54:12 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2020-12-29T02:54:12Z</dc:date>
    <item>
      <title>Android 9 Pie - Sepolicy</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-9-Pie-Sepolicy/m-p/1204112#M166950</link>
      <description>&lt;P&gt;In Android 9 I start a shell script at init.rc as a Android service. At ENG build I can see&amp;nbsp; AVC denied messages from Sepolicy and add all permissions requested, one by one, dozens of them.&lt;/P&gt;&lt;P&gt;In ENG build (&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;even without giving SEPolicy the permissions&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;) my script works as expected, but at USER build the script doesn't work. The problem is that at USER build I cant start the script manually to see any echo messages to debug whats happens and at USER I cant see any new AVC denied messages. If I give all SePolicy permissions why the script doesn't work at USER build? Are there a way to force Android show AVC denied messages from USER build (&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I'm considering that there are necessary permissions that were not requested with AVC messages in the ENG variant).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 11:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-9-Pie-Sepolicy/m-p/1204112#M166950</guid>
      <dc:creator>leonardoprates</dc:creator>
      <dc:date>2020-12-24T11:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Android 9 Pie - Sepolicy</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-9-Pie-Sepolicy/m-p/1204701#M167015</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sepolicy has three modes:&lt;STRONG&gt;Enforcing,&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Permissive,Disabled&lt;/STRONG&gt;.You can use&lt;STRONG&gt; getenforce&lt;/STRONG&gt; to see which mode it run.In/etc/selinux/config you can set sepolicy mode and i think you can set&amp;nbsp;&lt;STRONG&gt;Permissive,&lt;/STRONG&gt;the sepolicy will show avc messages but will not stop the scripts you add.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 02:54:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-9-Pie-Sepolicy/m-p/1204701#M167015</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2020-12-29T02:54:12Z</dc:date>
    </item>
  </channel>
</rss>

