#805592 adequate: Please check pid file permissions

Package:
adequate
Source:
adequate
Description:
Debian package quality testing tool
Submitter:
Guillem Jover
Date:
2024-07-02 01:57:03 UTC
Severity:
wishlist
#805592#5
Date:
2015-11-19 21:41:25 UTC
From:
To:
Hi!

I just noticed a pid file that only root can read. There is no
sensitive information there, and it prevents normal users to check for
the service status for example.

It would be nice if adequate could check for pid files to be
world-readable. I'm not sure how it would match the pacakge with the
pid filename though?

Thanks,
Guillem

#805592#8
Date:
2015-11-20 00:41:20 UTC
From:
To:
* Guillem Jover <guillem@debian.org>, 2015-11-19, 22:41:

Hmm, I'm not sure there's consensus that all pid files should be
world-readable. Could you ask on debian-devel?

Maybe something like this?

dpkg -S $(readlink /proc/$(cat /path/to/pidfile)/exe)

But it's not pretty, and it would work only for the root user, and
wouldn't work for scripts...

#805592#13
Date:
2024-06-15 19:29:35 UTC
From:
To:
hola Guillem, bon dia ;)

do you think that this bug is still relevant, especially with most daemons now
being handled internally by systemd? if so, can you please point me to a
specific package with non-readable pid file(s)?

gràcies,
Serafeim

#805592#18
Date:
2024-06-30 19:40:27 UTC
From:
To:
tags 805592 moreinfo
#805592#23
Date:
2024-07-02 01:55:51 UTC
From:
To:
Hola!

Personally I think portability is very important, and systemd being
Linux-only, it means any other port cannot rely or make use of it.

And I still think that these pid files are buggy, yes. :)

On a bookworm system, I just listed what I had on /run and noticed,
dovecot, fail2ban and smartd for example.

Salut,
Guillem