Package: apt-cacher
Version: 1.7.10
Severity: serious
Justification: Policy 9.1.4
In inetd mode apt-cacher is run as www-data user, who does not
have permission to create /var/run/apt-cacher directory. This
makes apt-cacher die() in /usr/share/apt-cacher/lib/apt-cacher.pl:429:
foreach my $dir (@dir) {
if (!-d $dir) {
warn "Info: $dir missing. Doing mkdir -p $dir\n";
File::Path::make_path($dir, {user => $uid,
group => $gid}) || die "Unable to
create $dir: $!";
}
Debian Policy 9.1.4 suggests that the directory should be created via
init script instead:
The directory /run is cleared at boot, normally by being a mount point
for a temporary file system. Packages therefore must not assume that any
files or directories under /run other than /run/lock exist unless the
package has arranged to create those files or directories since the last
reboot. Normally, this is done by the package via an init script. See
Writing the scripts, Section 9.3.2 for more information.
Packages must not include files or directories under /run, or under the
older /var/run and /var/lock paths. The latter paths will normally be
symlinks or other redirections to /run for backwards compatibility.
Regards,
robert
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (990, 'unstable'), (200, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.16-3-686-pae (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages apt-cacher depends on:
ii debconf [debconf-2.0] 1.5.56
ii ed 1.10-2
ii libdpkg-perl 1.17.25
ii libfilesys-df-perl 0.92-5+b1
ii libfreezethaw-perl 0.5001-1
ii libio-interface-perl 1.07-2+b1
ii libipc-shareable-perl 0.61-1
ii libnetaddr-ip-perl 4.075+dfsg-1+b1
ii libsys-syscall-perl 0.25-2
ii libwww-curl-perl 4.17-1+b1
ii libwww-perl 6.08-1
ii lsb-base 4.1+Debian13+nmu1
ii perl 5.20.2-6
ii ucf 3.0030
ii update-inetd 4.43
Versions of packages apt-cacher recommends:
ii libberkeleydb-perl 0.55-1
Versions of packages apt-cacher suggests:
ii libio-socket-inet6-perl 2.72-1
-- Configuration Files:
/etc/apt-cacher/apache.conf changed [not included]
/etc/apt-cacher/apt-cacher.conf changed [not included]
/etc/cron.d/apt-cacher changed [not included]
/etc/default/apt-cacher afc7a4b065275465c1eeb5a09c985bde [Errno 2] Nie ma
takiego pliku ani katalogu: u'/etc/default/apt-cacher
afc7a4b065275465c1eeb5a09c985bde'
-- debconf information:
* apt-cacher/mode: inetd
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]