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

def auditd_config::AuditdConfig::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 252 of file auditd_config.py.

00252                           :
        '''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_AUDITD_CONF)
        line_no = 0
        for line in contents.splitlines():
            line_no += 1
            try:
                a = self.__tokenize_line(line)
                if a is not None:
                    self.__interpret_option(*a)
            except ParsingError, e:
                print >> sys.stderr, "auditd.conf:%d: %s" % (line_no, str(e))

    def __option_values(self):


Generated by  Doxygen 1.6.0   Back to index