Changeset 489

Show
Ignore:
Timestamp:
05/27/08 09:54:46 (8 months ago)
Author:
mgoldman
Message:

Added missing handler code for client messages, fixed bug in reading booleans out of /selinux/booleans

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/trunk-pmd-intproto/agent/agent.py

    r488 r489  
    1919                f = file("/selinux/booleans/" + i, "r") 
    2020                val = f.read(512) 
    21                 res[i] = (val[0] == '1') 
     21                res[i] = (val[2] == '1') 
    2222        return res 
    2323 
     
    9797                if self.storage.enforcing == status: 
    9898                        return None 
     99# FIXME: Jeremy: store the status here. 
     100                # storage.enforcing = status 
     101                return None 
    99102                return protocol.Message("status", "update", status) 
    100103 
  • branches/trunk-pmd-intproto/server/master.py

    r488 r489  
    361361        def run2(self, timeout = None): 
    362362                self.clients.accept_and_wait(0) 
     363                [self.service_client(c) for c in self.clients.accept_and_wait(0)] 
    363364                return [self.service_manager(m) for m in self.manager.accept_and_wait(timeout)] 
    364365