1. 11 2月, 2021 3 次提交
    • Stefano Bonicatti's avatar
      Fix StartupItemTest failing due to unexpected values (#6940) · 358db03e
      Stefano Bonicatti 创作于
      The "path" column for a systemd unit row can be empty.
      
      Added missing possible values for the "status" column,
      when the "type" column value is "systemd unit".
      
      Removed "Login Item" as a possible value for the "type" column,
      since now "Startup Item" is used.
      
      Removed "disabled" as a possible value for the "status" column,
      since it's not returned anymore and due to the type "Startup Item"
      being either a script or a .desktop file, which do not have a disabled state;
      if they need to be they'll just be removed
      and they won't appear in the table anymore.
      
      Separately check for the "status" column possible values
      since they differ based on the "type" column value.
      未验证
      358db03e
    • Stefano Bonicatti's avatar
      Fix XattrTests failing due to unexpected attribute name (#6941) · 58a6a8d2
      Stefano Bonicatti 创作于
      The extended attributes present on a test file
      might not be only the ones set by the test itself.
      If SELinux is installed for instance, an additional extended attribute
      is present.
      Therefore instead of requiring that the list of attribute names
      is exactly the one set by the test, verify that the attribute names
      we expect are present in the list.
      未验证
      58a6a8d2
    • Stefano Bonicatti's avatar
      Fix ExtendedAttributesTableTests failing due to an unexpected attribute (#6942) · fd742c51
      Stefano Bonicatti 创作于
      Do not expect that the extended attributes list of a test file
      contains only the attributes that have been set by the test.
      Check that the extended attributes set by the test are all present
      instead.
      未验证
      fd742c51
  2. 10 2月, 2021 1 次提交
  3. 06 2月, 2021 1 次提交
  4. 05 2月, 2021 3 次提交
  5. 04 2月, 2021 1 次提交
  6. 03 2月, 2021 3 次提交
  7. 02 2月, 2021 1 次提交
  8. 31 1月, 2021 2 次提交
  9. 29 1月, 2021 1 次提交
  10. 27 1月, 2021 3 次提交
    • Zach Wasserman's avatar
      Update documentation about denylist schedule key (#6922) · 3d2d2ba0
      Zach Wasserman 创作于
      Attempts to clear up a common misconception about the functionality of
      the `denylist` key.
      未验证
      3d2d2ba0
    • Stefano Bonicatti's avatar
      Rename yara str functions to avoid symbol collisions (#6917) · 776eba97
      Stefano Bonicatti 创作于
      Yara publicly exposes the definition of various str functions like
      strlcpy, strlcat and so on if they are not present on the system
      it is compiled on.
      
      This is not ideal because other libraries use custom implementations
      of those functions and those symbols would collide with
      the public ones from yara, therefore we rename them
      to avoid the collision.
      未验证
      776eba97
    • Stefano Bonicatti's avatar
      Significantly speed up CMake configuration phase (#6914) · 6893a72e
      Stefano Bonicatti 创作于
      This speeds up the configuration phase and simplifies having
      control of the compilation flags used.
      
      Additional changes were required due to other libraries incorrectly
      depending on glog and gflags cmake code or headers.
      smartmontools especially, was incorrectly publicly depending
      on its own config.h, which was though taken from glog
      when smartmontools libsmartclt.h header was included by user code.
      A fix has been done on the smartmontools side and so the submodule
      commit we refer to has been updated.
      未验证
      6893a72e
  11. 26 1月, 2021 1 次提交
  12. 25 1月, 2021 1 次提交
  13. 22 1月, 2021 1 次提交
  14. 21 1月, 2021 1 次提交
  15. 20 1月, 2021 1 次提交
  16. 18 1月, 2021 3 次提交
  17. 16 1月, 2021 3 次提交
  18. 15 1月, 2021 2 次提交
  19. 14 1月, 2021 1 次提交
  20. 13 1月, 2021 1 次提交
  21. 11 1月, 2021 4 次提交
  22. 10 1月, 2021 2 次提交
    • Stefano Bonicatti's avatar
      Fix a leak in libdpkg when querying the deb_packages table (#6892) · 8cc6d99c
      Stefano Bonicatti 创作于
      libdpkg is leaking memory on every initialization.
      Initialization happens everytime deb_packages gets queried.
      
      The memory leaked is allocated for the "triggersdir"
      global variable by "dpkg_db_get_path" called in "trigdef_update_start".
      "trigdef_update_start" is called by "trig_incorporate" just after
      the memory for "triggersdir" has been allocated.
      In some occasions "trigdef_update_start" is also called two times in a
      row. In all these cases the memory do not get deallocated in between calls,
      so the old memory is lost.
      
      Since the result of "dpkg_db_get_path" depends on the database dir that
      has been set, and in the "trigdef_update_start" function it's not possible
      to know if it has changed from the previous allocation or not,
      it's necessary to always deallocate vs just avoid to call "dpkg_db_get_path".
      
      Fix also a couple of other leaks on error.
      未验证
      8cc6d99c
    • Brendan Shaklovitz's avatar