www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/06/04:16:19

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: Manuel Wienand <Manuel DOT Wienand AT ubitronix DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Wed, 6 Oct 2010 10:13:17 +0200
Subject: Cygwin >= 1.7.6 open message queues - permission denied
Message-ID: <0C11C5BF0B29FD43A8D0250F711D497F7F6639775F@ex01-ubitronix.ubitronix.local>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi,

I noticed that I get a permission denied error when I try to open a message=
 queue in the same process or
in an other process.
The problem can be reproduced using the code given at: http://sourceware.or=
g/ml/cygwin/2009-09/msg00629.html
I tried several versions:
1.7.7 (from the installer): permission denied
1.7.6 (0.230/5/3 2010-08-16 16:06, downgraded using the installer) : permis=
sion denied
1.7.5 (0.225/5/3 2010-04-12 19:07, extracted cygwin-1.7.5-1.tar.bz2 from on=
e of the mirrors): mqueue works.

Another thing I noticed is that the execute permission won't be set for the=
 owner of the message queue file.
E.g. in mq_open I set (S_IRWXU | S_IRWXG | S_IRWXO), but when looking at th=
e created file in the cygwin shell
(located in /dev/mqueue/) the permissions are set to "-rw-rwxrwx". But it d=
oesn't seem to have any impact on
the permission denied problem, since the execute permission isn't set in an=
y of the tested versions.

Regards,

Manuel


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019