audit: clean up AUDIT_GET/SET local variables and future-proof API
Re-named confusing local variable names (status_set and status_get didn't agree with their command type name) and reduced their scope. Future-proof API changes by not depending on the exact size of the audit_status struct and by adding an API version field. Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:

committed by
Eric Paris

parent
f910fde730
commit
09f883a902
@@ -376,6 +376,7 @@ struct audit_status {
|
||||
__u32 backlog_limit; /* waiting messages limit */
|
||||
__u32 lost; /* messages lost */
|
||||
__u32 backlog; /* messages waiting in queue */
|
||||
__u32 version; /* audit api version number */
|
||||
};
|
||||
|
||||
struct audit_features {
|
||||
|
Reference in New Issue
Block a user