<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Le 07/10/17 à 17:03, Laurent Bigonville a écrit :<br>
    <blockquote type="cite"
      cite="mid:73cb4e26-87b8-efad-1c47-b7b850710b3f@debian.org">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      On Fri, 22 Sep 2017 12:26:42 +0200 Laurent Bigonville <a
        class="moz-txt-link-rfc2396E" href="mailto:bigon@debian.org"
        moz-do-not-send="true"><bigon@debian.org></a> wrote:<br>
      <blockquote type="cite">
        <pre class="message flowed">[...]
3. If you don't want to shell out, you could use the python selinux
   module to retrieve and display the informations (see my little
   example attached) there is however no guarantee that the
   python-selinux module is installed if selinux is enabled though.
   That means that reportbug will have to Depends/Recommends it. IMHO
   this is the most flexible way.
[...]

I would probably for 3 if depending on the module is OK and we just a 
one line telling: "LMS: SELinux: enabled - enforcing/permissive - Policy 
name: foo"</pre>
      </blockquote>
      Here a patch that implements the SELinux part<br>
      <br>
    </blockquote>
    <br>
    Please find here the version 2 of my patch.<br>
  </body>
</html>