#!/usr/bin/python
# This program checks the kernel version to ensure we can
# safely run audit commands. It returns:
#  -1 if less
#   0 if equal to
#   1 if greater than 2.6.9-11
# therefore callers should check for less than or equal to 0.
#
import os, sys, rpm
(ver, tmprel) = os.uname()[2].split('-')
rel = tmprel.split('.')
sys.exit(rpm.labelCompare([None, ver, rel[0]], [None, '2.6.9','11']))
