Changeset 489
- 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
| r488 |
r489 |
|
| 19 | 19 | f = file("/selinux/booleans/" + i, "r") |
|---|
| 20 | 20 | val = f.read(512) |
|---|
| 21 | | res[i] = (val[0] == '1') |
|---|
| | 21 | res[i] = (val[2] == '1') |
|---|
| 22 | 22 | return res |
|---|
| 23 | 23 | |
|---|
| … | … | |
| 97 | 97 | if self.storage.enforcing == status: |
|---|
| 98 | 98 | return None |
|---|
| | 99 | # FIXME: Jeremy: store the status here. |
|---|
| | 100 | # storage.enforcing = status |
|---|
| | 101 | return None |
|---|
| 99 | 102 | return protocol.Message("status", "update", status) |
|---|
| 100 | 103 | |
|---|
| r488 |
r489 |
|
| 361 | 361 | def run2(self, timeout = None): |
|---|
| 362 | 362 | self.clients.accept_and_wait(0) |
|---|
| | 363 | [self.service_client(c) for c in self.clients.accept_and_wait(0)] |
|---|
| 363 | 364 | return [self.service_manager(m) for m in self.manager.accept_and_wait(timeout)] |
|---|
| 364 | 365 | |
|---|
Download in other formats:
* Generating other formats may take time.