X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from smtp03-out.koba.pl (smtp03-out.koba.pl [83.175.144.108]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 1F1CDDC01C6 for ; Sat, 19 Jul 2014 12:05:47 +0000 (UTC) Received: from [10.9.140.149] (helo=sigil.Belkin) by psyche.piasta.pl with esmtpa (Pocztex2 KoBa) (envelope-from ) id 1X8TOX-0000Ya-8i for alpine-devel@lists.alpinelinux.org; Sat, 19 Jul 2014 14:05:46 +0200 Date: Sat, 19 Jul 2014 14:05:41 +0200 From: Paul Onyschuk To: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Firefox not starting for normal user after Xorg update Message-Id: <20140719140541.dfcee7a97457e56d133c91bc@bojary.koba.pl> In-Reply-To: <20140719143135.53ab1d17@vostro> References: <20140719121811.b5989b5aa59ffcac0a40333b@bojary.koba.pl> <20140719143135.53ab1d17@vostro> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.23; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Date: 2014-07-19 14:05:46 On Sat, 19 Jul 2014 14:31:35 +0300 Timo Teras wrote: > I bumped into this exact same issue just yesterday. It seems to be > grsec preventing access to /sys (by modifying the default > permissions). And apparently the new i915 module wants to open stuff > there. Not sure if we should patch grsec, the driver, or somehow > adjust the /sys permissions. Should probably ask from grsec people > what to do. Looking at source code of xf86-video-intel [1] functions accessing sysfs are guarded by #ifdef __linux__ in intel_device.c (for other system lacking sysfs e.g. *BSD). Otherwise this happens: #else static int __intel_open_device__pci(const struct pci_device *pci) { return -1; } #endif And it falls back to legacy method: fd = __intel_open_device__pci(pci); if (fd == -1) fd = __intel_open_device__legacy(pci); Dirty workaround for time being could be just changing "#ifdef __linux__" to "#if 0" in intel_device.c (or I'm missing something?), before clearing this out with grsec people. [1] http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/src/intel_device.c -- Paul Onyschuk --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---