Changeset 1735
- Timestamp:
- 05/04/07 10:13:02
(2 years ago)
- Author:
- zcutlip
- Message:
removed:
old audit logs from incorrect policy
added:
audit log from framework policy
audit log from framework policy, running writer first, rather than reader
audit log from framework policy, with no access and no resource
updated README to reflect behavior of program as well as proper usage.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r724 |
r1735 |
|
| 1 | | |
|---|
| 2 | | writer.c creates a queue and then writes some text |
|---|
| 3 | | provided by user. Then program terminates leaving |
|---|
| 4 | | queue in the memory. |
|---|
| 5 | | reader.c starts and calls to create a new queue with |
|---|
| 6 | | same ID. Pointer to writer.c queue is returned, same |
|---|
| 7 | | ID. reader.c reads from that queue and ends. |
|---|
| | 1 | reader.c starts and calls to create a new queue with. |
|---|
| | 2 | Pointer to writer.c queue is returned, same |
|---|
| | 3 | ID. reader.c reads from that queue and ends, removing the queue. |
|---|
| 8 | 4 | |
|---|
| 9 | 5 | |
|---|
| | 6 | writer.c creates/opens a queue with same ID as with reader |
|---|
| | 7 | and then writes some text provided by user. Then program |
|---|
| | 8 | terminates leaving queue in the memory. |
|---|
| | 9 | |
|---|
| | 10 | Both programs strcmp for "end" and and terminate. |
|---|
| 10 | 11 | |
|---|
| 11 | 12 | RECEIVER --> reader.c |
|---|
| … | … | |
| 14 | 15 | USAGE |
|---|
| 15 | 16 | ----- |
|---|
| 16 | | [apatel@localhost mqueues]$ |
|---|
| 17 | | [apatel@localhost mqueues]$ |
|---|
| 18 | | [apatel@localhost mqueues]$ msg2 |
|---|
| 19 | | Enter some text: hello |
|---|
| 20 | | Enter some text: how are things |
|---|
| 21 | | Enter some text: crap |
|---|
| 22 | | Enter some text: stop it now |
|---|
| | 17 | $./reader |
|---|
| | 18 | $./writer |
|---|
| | 19 | Enter some text: test |
|---|
| 23 | 20 | Enter some text: end |
|---|
| 24 | | [apatel@localhost mqueues]$ msg1 |
|---|
| 25 | | You wrote: hello |
|---|
| 26 | | You wrote: how are things |
|---|
| 27 | | You wrote: crap |
|---|
| 28 | | You wrote: stop it now |
|---|
| 29 | | You wrote: end |
|---|
| 30 | | [apatel@localhost mqueues]$ |
|---|
| 31 | 21 | |
|---|
| 32 | 22 | |
|---|
Download in other formats:
* Generating other formats may take time.