From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5792 invoked by alias); 10 Apr 2010 13:43:29 -0000 Received: (qmail 5747 invoked by uid 48); 10 Apr 2010 13:43:12 -0000 Date: Sat, 10 Apr 2010 13:43:00 -0000 Message-ID: <20100410134312.5746.qmail@sourceware.org> From: "drepper at redhat dot com" To: glibc-bugs@sources.redhat.com In-Reply-To: <20100108183822.11149.vas.gurevich@gmail.com> References: <20100108183822.11149.vas.gurevich@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/11149] ldconfig - auxiliary cache does not work properly with -r option X-Bugzilla-Reason: CC 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 X-SW-Source: 2010-04/txt/msg00121.txt.bz2 ------- Additional Comments From drepper at redhat dot com 2010-04-10 13:43 ------- (In reply to comment #4) > Please, ask me if it is not enough. Thank you. It isn't enough. First, files named somelib are ignored because they don't look like libraries. I asked for the exact situation, not some general idea. Second, even if I'm using a real library with its real name and then a link I see no accesses outside the chroot: I copied libc.so in a chroot tree and added libc.so.6 as a symlink. The only accesses to libc.so of ldconfig -r $PWD/testroot are: lstat("$PWD/testroot/lib64/libc.so", {st_mode=S_IFREG|0775, st_size=9166760, ...}) = 0 open("$PWD/testroot/lib64/libc.so", O_RDONLY) = 4 stat("$PWD/testroot/lib64/libc.so.6", {st_mode=S_IFREG|0775, st_size=9166760, ...}) = 0 lstat("$PWD/testroot/lib64/libc.so.6", {st_mode=S_IFLNK|0777, st_size=7, ...}) = 0 readlink("$PWD/testroot/lib64/libc.so.6", "libc.so", 4096) = 7 lstat("$PWD/testroot/lib64/libc.so", {st_mode=S_IFREG|0775, st_size=9166760, ...}) = 0 lstat("$PWD/testroot/lib64/libc.so.6", {st_mode=S_IFLNK|0777, st_size=7, ...}) = 0 lstat("$PWD/testroot/lib64/libc.so.6", {st_mode=S_IFLNK|0777, st_size=7, ...}) = 0 readlink("$PWD/testroot/lib64/libc.so.6", "libc.so", 4096) = 7 lstat("$PWD/testroot/lib64/libc.so", {st_mode=S_IFREG|0775, st_size=9166760, ...}) = 0 stat("$PWD/testroot/lib64/libc.so", {st_mode=S_IFREG|0775, st_size=9166760, ...}) = 0 lstat("$PWD/testroot/lib64/libc.so", {st_mode=S_IFREG|0775, st_size=9166760, ...}) = 0 write(3, "libc.so.6\0/lib64/libc.so.6\0", 27) = 27 I have of course replace the real path with $PWD in the output. But as you can see there is no access outside the chroot. Either provide _exact_ instructions for how to show the problem or close the bug. And make sure you're using current sources. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=11149 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.