Package: bcron
Version: 0.11-12
Severity: important

Sorry for using gmail webmail - gmail decided I can't let "less secure
apps" send mail on my behalf, I'm trying to figure out what can be
done.

Anyway, here's what I wanted reportbug to send...

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Lorenzo Beretta <vc.net.lo...@gmail.com>
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Subject: bcron-sched fails to start after latest update
Message-ID: 
<165530519508.4489.146445291116667405.report...@dudu.homenet.telecomitalia.it>
X-Mailer: reportbug 11.5.0devuan1
Date: Wed, 15 Jun 2022 16:59:55 +0200

Package: bcron
Version: 0.11-12
Severity: important

Dear Maintainer,

right after the latest upgrade bcron stopped working:
crontab says "bcrontab: Fatal: Could not read crontab",
bcron-sched fails to start, svlogd says
2022-06-15_14:45:25.22147 bcron-sched: Starting
2022-06-15_14:45:25.22152 bcron-sched: Fatal: Could not open crontabs
directory: Permission denied
2022-06-15_14:45:25.22168 bcron-exec: Waiting for remaining slots to complete

According to strace bcron calls setuid(997) (ie "cron")
and then it chdirs /var/spool/cron (OK)
and THEN it tries to openat(AT_FDCWD, "crontabs", ...) => EACCES

$ ls -ld /var/spool/cron/crontabs/
drwx-wx--T 2 root crontab 4096 Jun 15 16:51 /var/spool/cron/crontabs/

but the crontabs in there are owned by cron:cron.

I'm using devuan, but the exact same bug happens in a sid virtual machine.

That's all the info I have atm, good day.


-- System Information:
Debian Release: bookworm/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-1-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: runit (via /run/runit.stopit)
LSM: AppArmor: enabled

Versions of packages bcron depends on:
ii  cron-daemon-common   3.0pl1-144
ii  daemon               0.8-1
ii  init-system-helpers  1.63devuan1
ii  libbg2               2.04+dfsg-2.1
ii  libc6                2.33-7
ii  runit-helper         2.13.1
ii  sysuser-helper       1.3.7+really1.4.1
ii  ucspi-unix           1.0-1

Versions of packages bcron recommends:
ii  dma [mail-transport-agent]  0.13-1+b1
ii  runit                       2.1.2-45

Versions of packages bcron suggests:
ii  anacron     2.3-32
ii  runit-init  2.1.2-45

-- no debconf information

Reply via email to