HI,

I'm Ccing Manoj as he contributed the SELinux support in dpkg. Hopefully
he'll be able to help on this bug.

On Sat, 05 Apr 2008, Russell Coker wrote:
> 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:

Can you tell us what precise change you did ? So that we can reproduce it
on our own machines if possible.

> # 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.

Not 100% sure it's the same bug, the double free happens while working on
squid-common and you appear to have lost
/var/lib/dpkg/info/squid-common.list as shown by this message:
> dpkg: serious warning: files list file for package `squid-common' missing, 
> assuming package has no files currently installed.

Cheers,
-- 
Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/


Reply via email to