1. 09 10月, 2005 1 次提交
  2. 30 8月, 2005 2 次提交
  3. 17 8月, 2005 1 次提交
  4. 19 7月, 2005 1 次提交
  5. 15 7月, 2005 1 次提交
  6. 14 7月, 2005 1 次提交
  7. 02 7月, 2005 1 次提交
    • D
      AUDIT: Stop waiting for backlog after audit_panic() happens · ac4cec44
      David Woodhouse 提交于
      We force a rate-limit on auditable events by making them wait for space 
      on the backlog queue. However, if auditd really is AWOL then this could 
      potentially bring the entire system to a halt, depending on the audit 
      rules in effect.
      
      Firstly, make sure the wait time is honoured correctly -- it's the 
      maximum time the process should wait, rather than the time to wait 
      _each_ time round the loop. We were getting re-woken _each_ time a 
      packet was dequeued, and the timeout was being restarted each time.
      
      Secondly, reset the wait time after audit_panic() is called. In general 
      this will be reset to zero, to allow progress to be made. If the system
      is configured to _actually_ panic on audit_panic() then that will 
      already have happened; otherwise we know that audit records are being 
      lost anyway. 
      
      These two tunables can't be exposed via AUDIT_GET and AUDIT_SET because 
      those aren't particularly well-designed. It probably should have been 
      done by sysctls or sysfs anyway -- one for a later patch.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      ac4cec44
  8. 25 6月, 2005 1 次提交
  9. 24 6月, 2005 1 次提交
  10. 22 6月, 2005 3 次提交
  11. 21 6月, 2005 1 次提交
  12. 20 6月, 2005 2 次提交
  13. 24 5月, 2005 1 次提交
  14. 22 5月, 2005 1 次提交
  15. 21 5月, 2005 2 次提交
  16. 19 5月, 2005 3 次提交
    • D
      AUDIT: Honour audit_backlog_limit again. · fb19b4c6
      David Woodhouse 提交于
      The limit on the number of outstanding audit messages was inadvertently
      removed with the switch to queuing skbs directly for sending by a kernel
      thread. Put it back again.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      fb19b4c6
    • D
      AUDIT: Send netlink messages from a separate kernel thread · b7d11258
      David Woodhouse 提交于
      netlink_unicast() will attempt to reallocate and will free messages if
      the socket's rcvbuf limit is reached unless we give it an infinite 
      timeout. So do that, from a kernel thread which is dedicated to spewing
      stuff up the netlink socket.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      b7d11258
    • S
      AUDIT: Clean up logging of untrusted strings · 168b7173
      Steve Grubb 提交于
      * If vsnprintf returns -1, it will mess up the sk buffer space accounting. 
      This is fixed by not calling skb_put with bogus len values.
      
      * audit_log_hex was a loop that called audit_log_vformat with %02X for each 
      character. This is very inefficient since conversion from unsigned character 
      to Ascii representation is essentially masking, shifting, and byte lookups. 
      Also, the length of the converted string is well known - it's twice the 
      original. Fixed by rewriting the function.
      
      * audit_log_untrustedstring had no comments. This makes it hard for 
      someone to understand what the string format will be.
      
      * audit_log_d_path was never fixed to use untrustedstring. This could mess
      up user space parsers. This was fixed to make a temp buffer, call d_path, 
      and log temp buffer using untrustedstring. 
      
      From: Steve Grubb <sgrubb@redhat.com>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      168b7173
  17. 18 5月, 2005 1 次提交
  18. 14 5月, 2005 3 次提交
  19. 13 5月, 2005 1 次提交
  20. 11 5月, 2005 7 次提交
  21. 06 5月, 2005 5 次提交