Package: cipux-cat-web,libcipux-cat-web-perl
Version: 3.4.0.3-4
Severity: serious
User: [email protected]
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package does not properly
manage /etc/cipux-cat-web/:

* libcipux-cat-web-perl creates it in the postinst and sets owner and
  restricted permissions
* cipux-cat-web ships it with default permissions in the package

The following problems may occur:

* after purging cipux-cat-web /etc/cipux-cat-web/ is gone even if
  libcipux-cat-web-perl is stll installed
* after purging and reinstalling cipux-cat-web the permissions are set
  to defaults

# l /etc/cipux-cat-web/
total 8
drwxr-x---  2 root www-data   80 Nov 24 09:51 .
drwxr-xr-x 40 root root     2140 Nov 24 09:51 ..
-rw-r--r--  1 root root      452 May  4  2011 apache.conf
-rw-r--r--  1 root root      450 May  4  2011 lighttpd.conf

# dpkg --purge cipux-cat-web
...

# apt-get install cipux-cat-web
...

# l /etc/cipux-cat-web/
total 8
drwxr-xr-x  2 root root   80 Nov 24 09:59 .
drwxr-xr-x 40 root root 2140 Nov 24 09:59 ..
-rw-r--r--  1 root root  452 May  4  2011 apache.conf
-rw-r--r--  1 root root  450 May  4  2011 lighttpd.conf

There may be more directories with similar problems as libcipux-cat-web-perl
creates more than just /etc/cipux-cat-web/

For consistency, the directory(-ies) should be shipped by all the
packages that need them. You can also ship directories with restricted
permissions being set, and shipping with a gifferent groups should work
as well (since www-data is a statically allocated uid/gid).
dpkg will take care of creation and removal (after the last referencing
package is removed).


Andreas

Attachment: cipux-cat-web_3.4.0.3-4.log.gz
Description: GNU Zip compressed data

Reply via email to