<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3867</bug_id>
          
          <creation_ts>2013-02-07 21:46:26 +0000</creation_ts>
          <short_desc>Add Bastille Linux Support to Yocto</short_desc>
          <delta_ts>2013-10-01 14:21:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.5 M4</target_milestone>
          
          <blocked>4660</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Garman">scott.a.garman</reporter>
          <assigned_to name="mulhern">mulhern</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>david.c.stewart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>mulhern</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>sh88ting.star</cc>
    
    <cc>song.liu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29653</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2013-02-07 21:46:26 +0000</bug_when>
    <thetext>This is a feature request to add Bastille Linux support to Yocto. Bastille includes a set of (perl) scripts to analyze and report recomended best security practices.

This is a matter of adding a recipe for Bastille to Yocto - assuming it may not make it into oe-core, I&apos;ve filed this bug against meta-yocto.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31690</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-04-08 14:31:04 +0000</bug_when>
    <thetext>*** Bug 4208 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31692</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Stewart">david.c.stewart</who>
    <bug_when>2013-04-08 14:43:08 +0000</bug_when>
    <thetext>I&apos;m adding the comments I made on 4208, so it&apos;s clear that the work is more than adding a recipe.

We should adopt a tool like Bastille Linux as part of the build system (perhaps an optional part).

Bastille can be run against a running Linux system to identify common backdoors and security holes.

A recipe probably needs to be developed plus a method for running it as part of the sanity test. Then there should be an easy way for developers using Yocto to run Bastille as a QA pass on their device.

This enhancement should be marked HIGH (P1) for the 1.5 release</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34903</commentid>
    <comment_count>3</comment_count>
    <who name="Andrei Dinu">andrei.adrianx.dinu</who>
    <bug_when>2013-07-25 14:47:51 +0000</bug_when>
    <thetext>Bastille can be found in :

http://git.yoctoproject.org/cgit/cgit.cgi/meta-security

under /recipes-security/bastille</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35226</commentid>
    <comment_count>4</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-31 14:19:20 +0000</bug_when>
    <thetext>At the moment Bastille does not work. When trying to use the file permissions modifying module, /var/log/Bastille/error-log reports:

{Wed Jul 31 15:21:08 2013} ERROR Didn&apos;t carry out general permissions
         modifications as they are very specific to Red Hat / Mandrake</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35409</commentid>
    <comment_count>5</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-08-06 10:03:59 +0000</bug_when>
    <thetext>This needs more work:
- Distribution checker must be disabled
- Poky Irrelevant questions must be removed from the form (bastille -c). We should make it contain only changes relevant to poky&apos;s features. This can be done through a patch and scaled to contain new features by adding a patch for Bastille in the layers that add that feature.

Reopening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35767</commentid>
    <comment_count>6</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-08-20 14:58:25 +0000</bug_when>
    <thetext>&quot;Distribution checker must be disabled&quot; refers to the error described in the second above comment:

{Wed Jul 31 15:21:08 2013} ERROR Didn&apos;t carry out general permissions
         modifications as they are very specific to Red Hat / Mandrake</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35917</commentid>
    <comment_count>7</comment_count>
    <who name="mulhern">mulhern</who>
    <bug_when>2013-08-26 14:09:06 +0000</bug_when>
    <thetext>Some of these problems and also #4660 problems addressed in:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=mulhern/bastille-final.

Comment 5
The config file is used as a reference indicating what are the relevant poky questions. Now, editing the config file before a build will automatically update Bastille&apos;s questions files so that the questions it believes are required will
exactly match those in the config file.

At the moment Bastille itself, i.e., the code that is downloaded, continues to be
comprehensively broken. The comment (4) problem is probably just one of very many.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36117</commentid>
    <comment_count>8</comment_count>
    <who name="mulhern">mulhern</who>
    <bug_when>2013-08-30 20:18:07 +0000</bug_when>
    <thetext>CCB has approved decision not to fix because of low quality of Bastille source.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36119</commentid>
    <comment_count>9</comment_count>
    <who name="mulhern">mulhern</who>
    <bug_when>2013-08-30 21:23:47 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/meta-security/commit/?id=5ec81ec5b117de41ed56eb05df271f103213d7be

The changes have been committed and are at the URL above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36601</commentid>
    <comment_count>10</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-09-12 12:03:27 +0000</bug_when>
    <thetext>Cannot install bastille using:
poky master:bd76847d867f9f76f76f033439cfb834cf59380f
meta-security master:23815f300174ce6cab48356e3fffba9868b626d4

Error as follows:
DEBUG: Executing shell function do_install
Fatal error reading config file: [Errno 13] Permission denied: &apos;/home/cornel/work/poky/build/tmp/work/qemux86_64-poky-linux/bastille/3.2.1-r0/Bastille/Questions/AccountSecurity.txt&apos;
WARNING: /home/cornel/work/poky/build/tmp/work/qemux86_64-poky-linux/bastille/3.2.1-r0/temp/run.do_install.12528:1 exit 1 from
  /home/cornel/work/poky/meta-security/recipes-security/bastille/files/set_required_questions.py /home/cornel/work/poky/build/tmp/work/qemux86_64-poky-linux/bastille/3.2.1-r0/config Questions
ERROR: Function failed: do_install (log file is located at /home/cornel/work/poky/build/tmp/work/qemux86_64-poky-linux/bastille/3.2.1-r0/temp/log.do_install.12528)

Even though this is marked as WONTFIX, should I reopen or open a new bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36638</commentid>
    <comment_count>11</comment_count>
    <who name="mulhern">mulhern</who>
    <bug_when>2013-09-13 00:05:55 +0000</bug_when>
    <thetext>It should install, so if it is not installing it is a bug and should be taken care of.

The error [Errno 13] is pretty specific. The program found the Account Security.txt file, but could not open it for reading. I can&apos;t reproduce the problem, because the necessary r bit is set for that file on my machine.

So, either it&apos;s a transient problem, or something exciting and new is happening to permission bits in the work directory, or you&apos;re using a variant of Python that takes a different view of file permissions.

If you can reproduce please make sure to find out as much as you can about the actual permission bits of the file and of the version of Python you&apos;re using.
Hopefully, it will turn out to be a transient problem, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36652</commentid>
    <comment_count>12</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-09-13 07:54:26 +0000</bug_when>
    <thetext>Bug 5177 opened for install issue. Because of this bug, I was not able to Verify this in 1.5 M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37417</commentid>
    <comment_count>13</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-01 14:21:02 +0000</bug_when>
    <thetext>Install issues cleared. The bastille package has seen some improvements. Setting this to VERIFIED as per comments in bug 4660.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>