]> git.baikalelectronics.ru Git - kernel.git/commit
audit: skip sessionid sentinel value when auto-incrementing
authorRichard Guy Briggs <rgb@redhat.com>
Thu, 10 Nov 2016 06:41:14 +0000 (01:41 -0500)
committerPaul Moore <paul@paul-moore.com>
Sun, 20 Nov 2016 20:28:22 +0000 (15:28 -0500)
commitce1eabf3a60a225400454883334038d7180fcd13
treec7d89cf07ef9f18e1e09d3dcb87a66765e63513f
parent664773c987947fd0183447c9709b58a93573e307
audit: skip sessionid sentinel value when auto-incrementing

The value (unsigned int)-1 is used as a sentinel to indicate the
sessionID is unset.  Skip this value when the session_id value wraps.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditsc.c