selinux: conditional expression type validation was off-by-one

This is the same off-by-one bug that was already fixed in the kernel.
(According to my understanding neither of these bugs has security
implications)

Signed-off-by: Vesa-Matti Kari <vmkari@cc.helsinki.fi>
Signed-off-by: Joshua Brindle <method@manicmethod.com>
This commit is contained in:
Vesa-Matti J Kari 2008-08-10 04:28:47 +03:00 committed by Joshua Brindle
parent 13cd4c8960
commit 0915aeaaac

View File

@ -48,7 +48,7 @@ typedef struct cond_expr {
#define COND_XOR 5 /* bool ^ bool */
#define COND_EQ 6 /* bool == bool */
#define COND_NEQ 7 /* bool != bool */
#define COND_LAST 8
#define COND_LAST COND_NEQ
uint32_t expr_type;
uint32_t bool;
struct cond_expr *next;