• A
    Audit: Log TIOCSTI · 1e641743
    Al Viro 提交于
    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: NMiloslav Trmac <mitr@redhat.com>
    Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: NJames Morris <jmorris@namei.org>
    1e641743
tty.h 17.5 KB