summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-12-12 10:59:06 +0100
committerNeal H. Walfield <neal@gnu.org>2008-12-12 10:59:06 +0100
commitd4578abee818f4e0f283a9695aa51eb8bd02f7e3 (patch)
tree0715575f473c4ab41431b8302dca57bcc54dfd60
parent99255d0d03e349704ddce17f0b0d431fd8a2d3a1 (diff)
Fix activity_policy's access checks.
2008-12-12 Neal H. Walfield <neal@gnu.org> * server.c (server_loop): Fix the activity_policy implementation to allow a weak capability to set an activity's child relative policy but not its sibling relative policy.
-rw-r--r--viengoos/ChangeLog6
-rw-r--r--viengoos/server.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/viengoos/ChangeLog b/viengoos/ChangeLog
index 783bbfe..8e8eb27 100644
--- a/viengoos/ChangeLog
+++ b/viengoos/ChangeLog
@@ -1,5 +1,11 @@
2008-12-12 Neal H. Walfield <neal@gnu.org>
+ * server.c (server_loop): Fix the activity_policy implementation
+ to allow a weak capability to set an activity's child relative
+ policy but not its sibling relative policy.
+
+2008-12-12 Neal H. Walfield <neal@gnu.org>
+
Implement messengers and convert to new IPC semantics.
* messenger.h: New file.
* messenger.c: New file.
diff --git a/viengoos/server.c b/viengoos/server.c
index 544a6c4..770a465 100644
--- a/viengoos/server.c
+++ b/viengoos/server.c
@@ -1754,7 +1754,7 @@ server_loop (void)
if (! target_writable
&& (flags & (ACTIVITY_POLICY_STORAGE_SET
- | ACTIVITY_POLICY_CHILD_REL_SET)))
+ | ACTIVITY_POLICY_SIBLING_REL_SET)))
REPLY (EPERM);
rm_activity_policy_reply (principal, reply, activity->policy);