<?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>4660</bug_id>
          
          <creation_ts>2013-06-12 09:25:34 +0000</creation_ts>
          <short_desc>[QA] - verify - Add Bastille Linux Support to Yocto</short_desc>
          <delta_ts>2013-10-01 12:53:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Test Plans/Suite</product>
          <component>test-plans/suite</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>OBSOLETE</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 M5</target_milestone>
          <dependson>3867</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Stoicescu Cornel">corneliux.stoicescu</assigned_to>
          <cc>andrei.adrianx.dinu</cc>
    
    <cc>corneliux.stoicescu</cc>
    
    <cc>mulhern</cc>
    
    <cc>sgw</cc>
    
    <cc>sh88ting.star</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33788</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-06-12 09:25:34 +0000</bug_when>
    <thetext>Added to track feature verification for  Bug 3867 - Add Bastille Linux Support to Yocto</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34367</commentid>
    <comment_count>1</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-05 15:29:48 +0000</bug_when>
    <thetext>We need to identify all features relevant to Yocto and test them. This will take some time. This will not block the feature merge into master though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34721</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-19 14:52:57 +0000</bug_when>
    <thetext>While testing the bastille package from the poky-contrib adinux/meta-security branch I found the following issues:

1) bastille did not make any changes to permissions on /sbin/runlevel even though I selected &quot;Yes&quot; when asked to do so (question nr. 3)

Steps to reproduce:
-issue &apos;bastille -c&apos;
-select &apos;Yes&apos; to question nr. 3: Q: Would you like to set more restrictive permissions on the administration utilities?
-select &apos;No&apos; for all other questions
-issue:
&quot;
root@qemux86-64:~# ls -l /sbin/runlevel
lrwxrwxrwx 1 root root 23 Jul 19 11:26 /sbin/runlevel -&gt; /sbin/runlevel.sysvinit
root@qemux86-64:~# ls -l /sbin/runlevel.sysvinit
-rwxr-xr-x 1 root root 5000 Jun 18 21:47 /sbin/runlevel.sysvinit
&quot;

Notice that permissions have not changed. According to Bastille description, this binary should not be world-executable anymore.

2) /etc/Bastille/config can not be changed or re-created using the latest answers given in interactive mode(bastille -c). Bastille should populate this file with the answers from the interactive mode.

3) the file /etc/Bastille/config that the image comes with does is incomplete:
root@qemux86-64:~# bastille -b -f /etc/Bastille/config
NOTE:    Entering Critical Code Execution.
         Bastille has disabled keyboard interrupts.


NOTE:    Bastille is scanning the system configuration...

FATAL:   A fatal error has occurred.  Not all of the questions
         that pertain to this system have been answered.  Rerun
         the interactive portion of Bastille on this system.
         MODULE.QUESTION=Patches.spc_run

4) &apos;bastille -l&apos; does not identify /etc/Bastille/conf as a valid configuration file

I could not make Bastille make any changes as it is now.

For testing I used an older 1.5 master commit. When I tried to make a core-image-sato using meta-security and poky 1.5 M1 RC1(master:a62aed41f2d8f874f7ae24d0e5be5dbc66ea2199) I got this warning:

WARNING: QA Issue: bastille: Files/directories were installed but not shipped
  /run
  /run/lock
  /run/lock/subsys
  /run/lock/subsys/bastille

When I tried with the latest master:31e6eee860b5f9f4ac9ef0889bcff5648de6e3f9 I got this error:

ERROR: QA Issue: bastille: Files/directories were installed but not shipped
  /run
  /run/lock
  /run/lock/subsys
  /run/lock/subsys/bastille
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/cornel/SSD/poky/build/tmp/work/all-poky-linux/bastille/3.2.1-r0/temp/log.do_package.28495
ERROR: Task 338 (/home/cornel/SSD/poky/meta-security/recipes-security/bastille/bastille_3.2.1.bb, do_package) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35225</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-31 14:17:45 +0000</bug_when>
    <thetext>core-image-sato can be successfully built using latest master and git://git.yoctoproject.org/meta-security .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35918</commentid>
    <comment_count>4</comment_count>
    <who name="mulhern">mulhern</who>
    <bug_when>2013-08-26 14:23:47 +0000</bug_when>
    <thetext>Some of these problems and also #3867 problems addressed in:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=mulhern/bastille-final.

Comment (1)
Now, a record of these decisions can be maintained simply by editing the config file in the files directory.

Comment (2)
(1) Bastille is comprehensively broken. It can&apos;t reliably be expected to make _any_ changes based on user responses while run in Interactive mode. Currently, InteractiveBastille makes a system call to BackEndBastille which seems to immediately fail. The call fails because it does not grant BackEndBastille the useful information it needs to run correctly. The screen flickers briefly between the last screen and the credits, I believe that that is an error message for the console&apos;s benefit.

(2) This works correctly, now.

(3) This is fixed, because now the questions answered in the configuration file match the questions that Bastille expect for the Yocto distribution. Unfortunately, that&apos;s not a lot of progress, since Bastille has great difficulty applying the changes.

(4) This is fixed. Bastille could locate the config file, but previously it refused to list it because there were no log messages indicating that Bastille had been run already. Now it lists config files regardless of whether it believes it has already been run.

There do not seem to be any errors during baking for me, either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36654</commentid>
    <comment_count>5</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-09-13 07:55:23 +0000</bug_when>
    <thetext>Moving to 1.5 M5 because of install issue with bastille (bug 5177)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36805</commentid>
    <comment_count>6</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-09-17 16:12:12 +0000</bug_when>
    <thetext>Since we have removed bastille from the 1.5 requirements, this tracking QA bug should be closed and QA should test the buck security or checksecurity packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37047</commentid>
    <comment_count>7</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-09-23 08:43:35 +0000</bug_when>
    <thetext>Are buck-security and checksecurity requirements for 1.5?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37396</commentid>
    <comment_count>8</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-01 12:53:13 +0000</bug_when>
    <thetext>The points that mulhern mentioned are working as described. Postponing this feature as per Saul&apos;s comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>