From owner-freebsd-current@FreeBSD.ORG Wed Feb 29 08:54:40 2012 Return-Path: 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 B60B71065672 for ; Wed, 29 Feb 2012 08:54:40 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 6A9CB8FC1D for ; Wed, 29 Feb 2012 08:54:40 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S2fIz-0005r5-HW for freebsd-current@freebsd.org; Wed, 29 Feb 2012 09:54:37 +0100 Received: from np-19-75.prenet.pl ([np-19-75.prenet.pl]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Feb 2012 09:54:37 +0100 Received: from jb.1234abcd by np-19-75.prenet.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Feb 2012 09:54:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: jb Date: Wed, 29 Feb 2012 08:54:20 +0000 (UTC) Lines: 29 Message-ID: References: <20120228092244.GB48977@mech-cluster241.men.bris.ac.uk> <20120228162447.GB58311@mech-cluster241.men.bris.ac.uk> <20120229072458.GA95427@DataIX.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 79.139.19.75 (Mozilla/5.0 (X11; FreeBSD i386; rv:9.0.1) Gecko/20100101 Firefox/9.0.1) Subject: Re: negative group permissions? 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: Wed, 29 Feb 2012 08:54:40 -0000 Jason Hellenthal dataix.net> writes: > ... > > > The file should not be executable, according to its purpose. > > > > > > So the lpr.c should be changed from > > > if ((fd = open(buf, O_RDWR|O_CREAT, 0661)) < 0) { > > ... > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/165533 > ... > Above I see your .seq file created 0641 so not only do you have a > negative permission on the file you are also missing a bit ;). 0641 ? Are you sure ? > ... > I attempted to search around for the history of 661 on .seq but cannot > find any at the moment. E_LACKINGSLEEP Check the PR filing again - I appended a relevant comment. Also, Linux distros (if you can swallow it ...) also disallowed it due to sec reason, but in a clumsy way by making sure the "exec" permission is turned off in a package install script. jb