Package: dpkg Version: 1.14.16.6 Severity: normal
Here is with a correct file_contexts file: # dpkg -i passwd_1%3a4.1.1-1_i386.deb (Reading database ... dpkg: serious warning: files list file for package `squid-common' missing, assuming package has no files currently installed. 35596 files and directories currently installed.) Preparing to replace passwd 1:4.1.1-1 (using passwd_1%3a4.1.1-1_i386.deb) ... Unpacking replacement passwd ... Setting up passwd (1:4.1.1-1) ... Now I edit /etc/selinux/refpolicy-targeted/contexts/files/file_contexts and change the line for /usr/bin/passwd and repeat the operation: # dpkg -i passwd_1%3a4.1.1-1_i386.deb (Reading database ... dpkg: serious warning: files list file for package `squid-common' missing, assuming package has no files currently installed. 35596 files and directories currently installed.) Preparing to replace passwd 1:4.1.1-1 (using passwd_1%3a4.1.1-1_i386.deb) ... Unpacking replacement passwd ... file_contexts: invalid context system_u:object_r:zpasswd_exec_t:s0 Error setting security context for next file object:: Invalid argument Segmentation fault The same bug also causes a libc trap, the below is an example. I can reproduce this on an i386 system but not on AMD64. I can give you root access on a suitable system to reproduce this if you wish. Script started on Sat 05 Apr 2008 12:17:34 EST # apt-get install squid The following extra packages will be installed: squid-common The following NEW packages will be installed: squid The following packages will be upgraded: squid-common 1 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 1 not fully installed or removed. Need to get 0B/1129kB of archives. After this operation, 6570kB of additional disk space will be used. Do you want to continue [Y/n]? Preconfiguring packages ... (Reading database ... dpkg: serious warning: files list file for package `squid-common' missing, assuming package has no files currently installed. 34197 files and directories currently installed.) Preparing to replace squid-common 2.6.19-1 (using .../squid-common_2.6.19-1_all.deb) ... Unpacking replacement squid-common ... file_contexts: invalid context system_u:object_r:squid_conf_t:s0 Error setting security context for next file object:: Invalid argument file_contexts: invalid context system_u:object_r:squid_conf_t:s0 Error setting security context for next file object:: Invalid argument file_contexts: invalid context system_u:object_r:squid_conf_t:s0 Error setting security context for next file object:: Invalid argument file_contexts: invalid context system_u:object_r:squid_conf_t:s0 Error setting security context for next file object:: Invalid argument *** glibc detected *** /usr/bin/dpkg: double free or corruption (fasttop): 0x0ac528e0 *** ======= Backtrace: ========= /lib/i686/nosegneg/libc.so.6[0xb7e7a2d5] /lib/i686/nosegneg/libc.so.6(cfree+0x90)[0xb7e7ddb0] /usr/bin/dpkg[0x804d4bd] /usr/bin/dpkg[0x806385e] /usr/bin/dpkg[0x805899f] /usr/bin/dpkg[0x804b1bf] /usr/bin/dpkg[0x805541e] /lib/i686/nosegneg/libc.so.6(__libc_start_main+0xe0)[0xb7e24450] /usr/bin/dpkg[0x804ab71] ======= Memory map: ======== 08048000-0809a000 r-xp 00000000 fe:0a 224682 /usr/bin/dpkg 0809a000-0809c000 rw-p 00051000 fe:0a 224682 /usr/bin/dpkg 0809c000-0ac63000 rw-p 0809c000 00:00 0 [heap] b7900000-b7921000 rw-p b7900000 00:00 0 b7921000-b7a00000 ---p b7921000 00:00 0 b7a87000-b7a8e000 r--s 00000000 fe:0a 225690 /usr/lib/gconv/gconv-modules.cache b7c66000-b7c72000 r-xp 00000000 fe:0a 176381 /lib/libgcc_s.so.1 b7c72000-b7c73000 rw-p 0000b000 fe:0a 176381 /lib/libgcc_s.so.1 b7c73000-b7c97000 rw-p b7c73000 00:00 0 b7c97000-b7ca0000 r-xp 00000000 fe:0a 177135 /lib/i686/nosegneg/libnss_files-2.7.so b7ca0000-b7ca2000 rw-p 00008000 fe:0a 177135 /lib/i686/nosegneg/libnss_files-2.7.so b7ca2000-b7caa000 r-xp 00000000 fe:0a 177137 /lib/i686/nosegneg/libnss_nis-2.7.so b7caa000-b7cac000 rw-p 00007000 fe:0a 177137 /lib/i686/nosegneg/libnss_nis-2.7.so b7cac000-b7cc0000 r-xp 00000000 fe:0a 177132 /lib/i686/nosegneg/libnsl-2.7.so b7cc0000-b7cc2000 rw-p 00013000 fe:0a 177132 /lib/i686/nosegneg/libnsl-2.7.so b7cc2000-b7cc4000 rw-p b7cc2000 00:00 0 b7cc4000-b7ccb000 r-xp 00000000 fe:0a 177133 /lib/i686/nosegneg/libnss_compat-2.7.so b7ccb000-b7ccd000 rw-p 00006000 fe:0a 177133 /lib/i686/nosegneg/libnss_compat-2.7.so b7cd3000-b7e0d000 r--p 00000000 fe:0a 395 /usr/lib/locale/locale-archive b7e0d000-b7e0e000 rw-p b7e0d000 00:00 0 b7e0e000-b7f59000 r-xp 00000000 fe:0a 177126 /lib/i686/nosegneg/libc-2.7.so b7f59000-b7f5a000 r--p 0014a000 fe:0a 177126 /lib/i686/nosegneg/libc-2.7.so b7f5a000-b7f5c000 rw-p 0014b000 fe:0a 177126 /lib/i686/nosegneg/libc-2.7.so b7f5c000-b7f5f000 rw-p b7f5c000 00:00 0 b7f5f000-b7f73000 r-xp 00000000 fe:0a 177140 /lib/i686/nosegneg/libpthread-2.7.so b7f73000-b7f75000 rw-p 00013000 fe:0a 177140 /lib/i686/nosegneg/libpthread-2.7.so b7f75000-b7f78000 rw-p b7f75000 00:00 0 b7f7b000-b7f7f000 rw-p b7f7b000 00:00 0 b7f7f000-b7f80000 r-xp b7f7f000 00:00 0 [vdso] b7f80000-b7f9a000 r-xp 00000000 fe:0a 176968 /lib/ld-2.7.so b7f9a000-b7f9c000 rw-p 00019000 fe:0a 176968 /lib/ld-2.7.so bfe1d000-bfe32000 rw-p bfe1d000 00:00 0 [stack] E: Sub-process /usr/bin/dpkg exited unexpectedly # Script done on Sat 05 Apr 2008 12:18:21 EST -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-5-686 Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Versions of packages dpkg depends on: ii coreutils 5.97-5.3 The GNU core utilities ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries dpkg recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]