From owner-freebsd-current@FreeBSD.ORG Thu Nov 30 13:45:26 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 798E316A494 for ; Thu, 30 Nov 2006 13:45:26 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id D25C643CAF for ; Thu, 30 Nov 2006 13:45:17 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 8C98446B58; Thu, 30 Nov 2006 08:45:21 -0500 (EST) Date: Thu, 30 Nov 2006 13:45:21 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: JAroslav Suchanek In-Reply-To: <20061130131143.GA31809@jardas.grisoft.cz> Message-ID: <20061130134403.P41812@fledge.watson.org> References: <20061130131143.GA31809@jardas.grisoft.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: shmget regression? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 13:45:26 -0000 On Thu, 30 Nov 2006, JAroslav Suchanek wrote: > I've tried to post PR, but it seems it got lost somewhere. > > I just wonder whether there was some change in shmget behavior in current. > > Look at this patch to src/sys-cur/tools/regression/sysvshm/shmtest.c Can you send the output of 'ipcs' after the below code runs so that I can see the mode it ended up being created with? You might try reverting the priv(9) change to sysv_ipc.c and see if that fixes thanks? Thanks, Robert N M Watson Computer Laboratory University of Cambridge > > --- shmtest_old.c Tue Nov 28 09:59:55 2006 > +++ shmtest.c Tue Nov 28 09:58:39 2006 > @@ -126,6 +126,9 @@ > if ((sender_shmid = shmget(shmkey, pgsize, IPC_CREAT | 0640)) == -1) > err(1, "shmget"); > > + if ((sender_shmid = shmget(shmkey, pgsize, 0640)) == -1) > + err(1, "shmget"); > + > if (shmctl(sender_shmid, IPC_STAT, &s_ds) == -1) > err(1, "shmctl IPC_STAT"); > > > It failed with permission denied. Is that ok? Same code does not fail on STABLE > nor Linux. > > The system is: > i386 FreeBSD 7.0-CURRENT > > Relevant part of conf file: > options SYSVSHM #SYSV-style shared memory > options SYSVMSG #SYSV-style message queues > options SYSVSEM #SYSV-style semaphores > > As I searched via cvsview, there were no suspicious changes in sysv ipc code > recently, the only change is switch to priv(9) from suser(9). > > Thanks for clarification, > Jarda Suchanek > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >