Module: xenomai-3
Branch: next
Commit: 033976af9db37d77dbb0c0422658bf7df0680104
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=033976af9db37d77dbb0c0422658bf7df0680104

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Aug  6 09:49:16 2015 +0200

lib/cobalt/heapobj: pshared: allow group access to heap

Allow users who belong to the same group to access the shared heap,
provided umask allows it too.

---

 lib/copperplate/heapobj-pshared.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/heapobj-pshared.c 
b/lib/copperplate/heapobj-pshared.c
index 61769c9..5fe899a 100644
--- a/lib/copperplate/heapobj-pshared.c
+++ b/lib/copperplate/heapobj-pshared.c
@@ -628,7 +628,7 @@ static int create_main_heap(pid_t *cnode_r)
        snprintf(hobj->fsname, sizeof(hobj->fsname),
                 "/xeno:%s", hobj->name);
 
-       fd = shm_open(hobj->fsname, O_RDWR|O_CREAT, 0600);
+       fd = shm_open(hobj->fsname, O_RDWR|O_CREAT, 0660);
        if (fd < 0)
                return __bt(-errno);
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to