From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3964 invoked by alias); 23 Apr 2014 22:01:29 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 3865 invoked by uid 48); 23 Apr 2014 22:01:24 -0000 From: "Martin.vGagern at gmx dot net" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/16871] New: ldconfig -X should not touch symlinks Date: Wed, 23 Apr 2014 22:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.19 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: Martin.vGagern at gmx dot net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg00123.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D16871 Bug ID: 16871 Summary: ldconfig -X should not touch symlinks Product: glibc Version: 2.19 Status: NEW Severity: minor Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: Martin.vGagern at gmx dot net Currently (and since commit 647eb037f from 2001), ldconfig will unlink any = file it considers a stale library symlink. It will do so even if the -X option is given on the command line, and it will also do so no matter what error occu= rred while executing stat64 on the real file name. One problem with this is that people might reasonably expect unlink -X -N to have no side effects except its output. This is how I found the issue: the configure script of the xapian library calls =E2=80=9C/sbin/ldconfig -N -X = -v=E2=80=9D, and does so only to parse its output, with no modification intended. Another problem is that the errno resulting from the stat64 call is not checked. So any error accessing that file leads to removal of the symlink. = In particular, insufficient permissions are affected by this as well. So if a group of admins were allowed to write /usr/lib and someone installed a syml= ink there to a library which is group-readable but not world-readable, then an admin not in that group might accidentially delete said symlink. With only = root accessing these directories, access should normally not be a problem, but I guess the problem might reappear with e.g. nfs mapping root to non-root. So on the whole, I suggest that you change the unlink condition to if (errno =3D=3D ENOENT && do_remove && strstr (direntry->d_name, ".so.")) or something like this. --=20 You are receiving this mail because: You are on the CC list for the bug. >>From glibc-bugs-return-22173-listarch-glibc-bugs=sources.redhat.com@sourceware.org Thu Apr 24 14:19:30 2014 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 16327 invoked by alias); 24 Apr 2014 14:19:29 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 16238 invoked by uid 48); 24 Apr 2014 14:19:24 -0000 From: "bernie.ogden at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug nptl/15119] [arm] unnecessary busy loop in __lll_timedlock_wait on ARM Date: Thu, 24 Apr 2014 14:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bernie.ogden at linaro dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bernie.ogden at linaro dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg00124.txt.bz2 Content-length: 490 https://sourceware.org/bugzilla/show_bug.cgi?id=15119 Bernard Ogden changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernie.ogden at linaro dot org Assignee|maxim.kuvyrkov at gmail dot com |bernie.ogden at linaro dot org -- You are receiving this mail because: You are on the CC list for the bug.