1. 14 1月, 2014 19 次提交
  2. 06 11月, 2013 13 次提交
  3. 25 9月, 2013 1 次提交
  4. 13 6月, 2013 1 次提交
  5. 08 5月, 2013 2 次提交
  6. 01 5月, 2013 4 次提交
    • E
      audit: fix event coverage of AUDIT_ANOM_LINK · b24a30a7
      Eric Paris 提交于
      The userspace audit tools didn't like the existing formatting of the
      AUDIT_ANOM_LINK event. It needed to be expanded to emit an AUDIT_PATH
      event as well, so this implements the change. The bulk of the patch is
      moving code out of auditsc.c into audit.c and audit.h for general use.
      It expands audit_log_name to include an optional "struct path" argument
      for the simple case of just needing to report a pathname. This also
      makes
      audit_log_task_info available when syscall auditing is not enabled,
      since
      it is needed in either case for process details.
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Reported-by: NSteve Grubb <sgrubb@redhat.com>
      b24a30a7
    • E
      audit: use spin_lock in audit_receive_msg to process tty logging · 7173c54e
      Eric Paris 提交于
      This function is called when we receive a netlink message from
      userspace.  We don't need to worry about it coming from irq context or
      irqs making it re-entrant.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      7173c54e
    • R
      audit: add an option to control logging of passwords with pam_tty_audit · 46e959ea
      Richard Guy Briggs 提交于
      Most commands are entered one line at a time and processed as complete lines
      in non-canonical mode.  Commands that interactively require a password, enter
      canonical mode to do this while shutting off echo.  This pair of features
      (icanon and !echo) can be used to avoid logging passwords by audit while still
      logging the rest of the command.
      
      Adding a member (log_passwd) to the struct audit_tty_status passed in by
      pam_tty_audit allows control of canonical mode without echo per task.
      Signed-off-by: NRichard Guy Briggs <rgb@redhat.com>
      Signed-off-by: NEric Paris <eparis@redhat.com>
      46e959ea
    • E
      audit: use spin_lock_irqsave/restore in audit tty code · bde02ca8
      Eric Paris 提交于
      Some of the callers of the audit tty function use spin_lock_irqsave/restore.
      We were using the forced always enable version, which seems really bad.
      Since I don't know every one of these code paths well enough, it makes
      sense to just switch everything to the safe version.  Maybe it's a
      little overzealous, but it's a lot better than an unlucky deadlock when
      we return to a caller with irq enabled and they expect it to be
      disabled.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      bde02ca8