https://github.com/torvalds/linux
Revision 48887e63d6e057543067327da6b091297f7fe645 authored by Al Viro on 06 December 2008, 06:05:50 UTC, committed by Al Viro on 09 December 2008, 07:27:41 UTC
Timestamp in audit_context is valid only if ->in_syscall is set.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 7f0ed77
Raw File
Tip revision: 48887e63d6e057543067327da6b091297f7fe645 authored by Al Viro on 06 December 2008, 06:05:50 UTC
[PATCH] fix broken timestamps in AVC generated by kernel threads
Tip revision: 48887e6
Lindent
#!/bin/sh
PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
RES=`indent --version`
V1=`echo $RES | cut -d' ' -f3 | cut -d'.' -f1`
V2=`echo $RES | cut -d' ' -f3 | cut -d'.' -f2`
V3=`echo $RES | cut -d' ' -f3 | cut -d'.' -f3`
if [ $V1 -gt 2 ]; then
  PARAM="$PARAM -il0"
elif [ $V1 -eq 2 ]; then
  if [ $V2 -gt 2 ]; then
    PARAM="$PARAM -il0";
  elif [ $V2 -eq 2 ]; then
    if [ $V3 -ge 10 ]; then
      PARAM="$PARAM -il0"
    fi
  fi
fi
indent $PARAM "$@"
back to top