Logo Search packages:      
Sourcecode: audit version File versions  Download package

def audit_rules::AuditRules::read (   self,
  client 
)

Read the auditd configuration file using client.

Raise IOError on error.  Invalid lines are reported on stderr (in
English), but otherwise ignored.

Definition at line 672 of file audit_rules.py.

00672                           :
        '''Read the auditd configuration file using client.

        Raise IOError on error.  Invalid lines are reported on stderr (in
        English), but otherwise ignored.

        '''
        contents = client.read_file(server.FILE_AUDIT_RULES)
        line_no = 0
        for line in contents.splitlines():
            line_no += 1
            line = line.strip(' ')
            if not line:
                continue
            if line.startswith('#'):
                continue
            try:
                self.__interpret_line(self.__whitespace_re.split(line))
            except ParsingError, e:
                print >> sys.stderr, "audit.rules:%d: %s" % (line_no, e.message)

    def write(self, client):


Generated by  Doxygen 1.6.0   Back to index