From owner-freebsd-current@FreeBSD.ORG Thu Nov 30 13:13:41 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 C5EE116A4FE for ; Thu, 30 Nov 2006 13:13:41 +0000 (UTC) (envelope-from jarda@grisoft.cz) Received: from ms.grisoft.cz (ms.grisoft.cz [193.85.188.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5547A43D95 for ; Thu, 30 Nov 2006 13:11:42 +0000 (GMT) (envelope-from jarda@grisoft.cz) Received: from localhost (gate2 [127.0.0.1]) by ms.grisoft.cz (Postfix) with ESMTP id 07BBE68021 for ; Thu, 30 Nov 2006 14:11:49 +0100 (CET) Received: from ms.grisoft.cz ([127.0.0.1]) by localhost (gate2 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14648-09 for ; Thu, 30 Nov 2006 14:11:48 +0100 (CET) Received: from jardas.grisoft.cz (unknown [192.168.104.87]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ms.grisoft.cz (Postfix) with ESMTP id B41866800E for ; Thu, 30 Nov 2006 14:11:48 +0100 (CET) Received: from jardas.grisoft.cz (localhost [127.0.0.1]) by jardas.grisoft.cz (8.13.8/8.12.9) with ESMTP id kAUDBhem031970 for ; Thu, 30 Nov 2006 14:11:43 +0100 (CET) (envelope-from jarda@jardas.grisoft.cz) Received: (from jarda@localhost) by jardas.grisoft.cz (8.13.8/8.13.8/Submit) id kAUDBh2l031969 for freebsd-current@freebsd.org; Thu, 30 Nov 2006 14:11:43 +0100 (CET) (envelope-from jarda) Date: Thu, 30 Nov 2006 14:11:43 +0100 From: JAroslav Suchanek To: freebsd-current@freebsd.org Message-ID: <20061130131143.GA31809@jardas.grisoft.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by AVG Anti-Virus at grisoft.cz Subject: 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:13:41 -0000 Hi! 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 --- 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