1. 07 Oct, 2014 2 commits
    • Timo Teräs's avatar
      db: fix crash if unable to download cache item · 5496560a
      Timo Teräs authored
      fixes #3371
      5496560a
    • Timo Teräs's avatar
      db: rework directory permission handling · 09e48d8f
      Timo Teräs authored
      Apk used to reset directory permissions always, but this is undesirable
      if user has modified the permissions - especially during tmpfs boot.
      Though, it is desirable to update the permissions when packaging has
      changed permissions, or a new package is installed and the merged
      permission mask / owner changes.
      
      Thus the new code updates the permissions only if:
       1) We are booting and directory is not in apkovl
       2) The directory is modified by a package install/remove/upgrade
       3) The filesystem directory permission matched database
      
      Additionally "apk fix --directory-permissions" can be used to reset
      all directory permissions to the database defaults.
      
      Fixes #2966
      09e48d8f
  2. 06 Oct, 2014 2 commits
  3. 19 May, 2014 1 commit
  4. 25 Apr, 2014 1 commit
  5. 12 Mar, 2014 1 commit
    • Timo Teräs's avatar
      audit: include all files in etc/apk in overlay · d99e82c6
      Timo Teräs authored
      This implements a new protected path flag '!' to include always
      matching entries in the backup mode (overlay). This is also turned
      on for etc/apk to include everything there in overlay, because
      the full list of repositories and signing keys need to be in
      overlay - just getting them from a package is not enough during
      bootstrap.
      d99e82c6
  6. 02 Oct, 2013 1 commit
  7. 01 Oct, 2013 1 commit
  8. 20 Sep, 2013 2 commits
  9. 17 Jul, 2013 1 commit
  10. 28 Jun, 2013 1 commit
  11. 21 Jun, 2013 2 commits
  12. 20 Jun, 2013 2 commits
  13. 19 Jun, 2013 1 commit
    • Timo Teräs's avatar
      all: few behavioural regression fixes · 6da083fc
      Timo Teräs authored
      Wildcard matching with no names should match all packages only for
      info and search applet. "apk del" would otherwise try to delete
      everything, etc.
      
      Fix also interactive mode to ask questions only if we are actually
      changing something.
      6da083fc
  14. 18 Jun, 2013 4 commits
  15. 17 Jun, 2013 5 commits
  16. 13 Jun, 2013 2 commits
  17. 30 May, 2013 2 commits
  18. 29 May, 2013 2 commits
  19. 20 Sep, 2012 1 commit
  20. 04 Sep, 2012 1 commit
    • Timo Teräs's avatar
      db: remove AT_SYMLINK_NOFOLLOW for directory permissions · 8a4371cc
      Timo Teräs authored
      fchmodat does not support this flag - symlinks do not have permissions.
      
      Sysadmin probably does not expect us to not follow symlinks either:
      if /var -> /mnt/foo/var, we should be making sure the permissions
      and ownership is correct on the target directory, not on the symlink.
      
      Since fchmodat never returned ENOENT with AT_SYMLINK_NOFOLLOW, this
      also fixes directory re-creation if it does not exist. fixes #1348.
      8a4371cc
  21. 16 Jul, 2012 1 commit
    • Timo Teräs's avatar
      audit: fix protection mask of non-db directories · ea5b08d1
      Timo Teräs authored
      If a directory has protection mask, but does not exist in db, we
      do not handle it right unless we calculate the protection mask by
      hand, or create temporary db dir entry for it. For simplicity create
      always the db dir entry -- depending on audit type we likely need
      to create it anyway. This commit also caches the db dir entry in the
      audit tree context to avoid duplicate lookups. ref #1241.
      ea5b08d1
  22. 01 May, 2012 1 commit
  23. 27 Apr, 2012 1 commit
  24. 24 Feb, 2012 2 commits