Skip to content
  • Eric Paris's avatar
    Audit: standardize string audit interfaces · b556f8ad
    Eric Paris authored
    
    
    This patch standardized the string auditing interfaces.  No userspace
    changes will be visible and this is all just cleanup and consistancy
    work.  We have the following string audit interfaces to use:
    
    void audit_log_n_hex(struct audit_buffer *ab, const unsigned char *buf, size_t len);
    
    void audit_log_n_string(struct audit_buffer *ab, const char *buf, size_t n);
    void audit_log_string(struct audit_buffer *ab, const char *buf);
    
    void audit_log_n_untrustedstring(struct audit_buffer *ab, const char *string, size_t n);
    void audit_log_untrustedstring(struct audit_buffer *ab, const char *string);
    
    This may be the first step to possibly fixing some of the issues that
    people have with the string output from the kernel audit system.  But we
    still don't have an agreed upon solution to that problem.
    
    Signed-off-by: default avatarEric Paris <eparis@redhat.com>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    b556f8ad