1. 28 6月, 2018 2 次提交
    • S
      security: Add swtpm paths to the domain's AppArmor profile · 43b0b4f8
      Stefan Berger 提交于
      This patch extends the AppArmor domain profile with file paths
      the swtpm accesses for state, log, pid, and socket files.
      
      Both, QEMU and swtpm, use this AppArmor profile.
      Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
      Cc: Christian Ehrhardt <christian.ehrhardt@canonical.com>
      43b0b4f8
    • J
      nwfilter: variable 'obj' must be initialized inside nwfilterBindingCreateXML(). · f8c65481
      Julio Faracco 提交于
      The function nwfilterBindingCreateXML() is failing to compile due to a
      conditional branch which leads to an undefined 'obj' variable. So 'obj'
      must have an initial value to avoid compilation errors. See the problem:
      
        CC       nwfilter/libvirt_driver_nwfilter_impl_la-nwfilter_driver.lo
      nwfilter/nwfilter_driver.c:752:9: error: variable 'obj' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
          if (virNWFilterBindingCreateXMLEnsureACL(conn, def) < 0)
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      nwfilter/nwfilter_driver.c:779:10: note: uninitialized use occurs here
          if (!obj)
               ^~~
      nwfilter/nwfilter_driver.c:752:5: note: remove the 'if' if its condition is always false
          if (virNWFilterBindingCreateXMLEnsureACL(conn, def) < 0)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      nwfilter/nwfilter_driver.c:742:33: note: initialize the variable 'obj' to silence this warning
          virNWFilterBindingObjPtr obj;
                                      ^
                                       = NULL
      
      This commit initialized 'obj' with NULL to fix the error properly.
      Signed-off-by: NJulio Faracco <jcfaracco@gmail.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      f8c65481
  2. 27 6月, 2018 23 次提交
  3. 26 6月, 2018 15 次提交