1. 17 Sep, 2017 1 commit
  2. 15 Sep, 2017 1 commit
  3. 11 Sep, 2017 1 commit
  4. 10 Sep, 2017 1 commit
  5. 08 Sep, 2017 1 commit
  6. 07 Sep, 2017 5 commits
  7. 30 Aug, 2017 1 commit
  8. 29 Aug, 2017 2 commits
  9. 28 Aug, 2017 2 commits
    • Christian Boltz's avatar
      Drop 'log' parameter from ReadLog · ae692bfb
      Christian Boltz authored
      This parameter is always [], so we can simplify the ReadLog __init__()
      parameters.
      
      Note that some tests handed over '' instead of []. This was a bug, but
      didn't matter because those tests only use a small portion of ReadLog.
      Acked-by: default avatarSeth Arnold <seth.arnold@canonical.com>
      ae692bfb
    • Christian Boltz's avatar
      Make aa.py 'log' non-global · a016042a
      Christian Boltz authored
      'log' is only used in do_logprof_pass, and reset to [] at the beginning
      of the function. Therefore it doesn't need to be a global variable.
      
      Also, do_logprof_pass() initializes log = [], which gets then handed
      over to ReadLog and overwritten by the read_log() call in the next line.
      To make clear that [] gets handed over to ReadLog, replace log with []
      and drop the now superfluous initialization with [].
      Acked-by: default avatarSeth Arnold <seth.arnold@canonical.com>
      a016042a
  10. 22 Aug, 2017 2 commits
  11. 19 Aug, 2017 1 commit
  12. 09 Aug, 2017 2 commits
  13. 08 Aug, 2017 2 commits
  14. 07 Aug, 2017 5 commits
  15. 05 Aug, 2017 1 commit
  16. 04 Aug, 2017 1 commit
    • Christian Boltz's avatar
      Prevent 'wa' conflicts for file rules · 12cfc5ec
      Christian Boltz authored
      get_file_perms() and propose_file_rules() happily collect all file
      permissions. This could lead to proposing 'wa' permissions in
      aa-logprof, which then errored out because of conflicting permissions.
      
      This patch adds a check to both functions that removes 'a' if 'w' is
      present, and extends the tests to check this.
      
      
      Acked-by: Seth Arnold <seth.arnold@canonical.com> for trunk and 2.11.
      
      Note: Both functions (including this bug) were introduced together with
      FileRule, so older releases are not affected.
      12cfc5ec
  17. 02 Aug, 2017 1 commit
    • Christian Boltz's avatar
      Carry over all autodep-generated rules in handle_children() · 1d0790c0
      Christian Boltz authored
      When creating a new child profile, handle_children() did only copy over
      include and path rules. While this was correct in the past, path rules
      got changed to FileRule in the meantime and were therefore lost.
      (In practise, this means the "$binary mr," rule wasn't added to the new
      child profile, causing a "superfluous" question in aa-logprof.)
      
      This patch changes handle_children() to carry over the complete new
      child profile instead of only cherry-picking include and path rules.
      
      
      Acked-by: Steve Beattie <steve@nxnw.org> for trunk and 2.11.
      
      Older versions (with path as hasher) are not affected.
      1d0790c0
  18. 31 Jul, 2017 3 commits
  19. 28 Jul, 2017 1 commit
  20. 26 Jul, 2017 1 commit
  21. 23 Jul, 2017 1 commit
  22. 14 Jul, 2017 1 commit
  23. 11 Jul, 2017 3 commits