Skip to content
  • Al Viro's avatar
    Audit: Log TIOCSTI · 1e641743
    Al Viro authored
    
    
    AUDIT_TTY records currently log all data read by processes marked for
    TTY input auditing, even if the data was "pushed back" using the TIOCSTI
    ioctl, not typed by the user.
    
    This patch records all TIOCSTI calls to disambiguate the input.  It
    generates one audit message per character pushed back; considering
    TIOCSTI is used very rarely, this simple solution is probably good
    enough.  (The only program I could find that uses TIOCSTI is mailx/nail
    in "header editing" mode, e.g. using the ~h escape.  mailx is used very
    rarely, and the escapes are used even rarer.)
    
    Signed-Off-By: default avatarMiloslav Trmac <mitr@redhat.com>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: default avatarJames Morris <jmorris@namei.org>
    1e641743