[Pkg-acpi-devel] Bug#553643: 553643 is not really resolved by "pidof /usr/sbin/powersaved"

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Jan 6 21:26:14 UTC 2010


reopen 553643
thanks

switching from "pidof powersaved" to "pidof /usr/sbin/powersaved"
doesn't really resolve the problem, though.  The attached program
renames itself so that it shows up in the output of "pidof
/usr/sbin/powersaved" as well.

I suspect pidof might not be the right way to find out if powersaved is
really running.  perhaps powersaved has an interface you could query?

hrm.  looking into it further, it appears that powersaved has been
dropped from debian, so this particular instance could be resolved even
more easily for the upcoming release:

http://packages.qa.debian.org/p/powersave/news/20091218T132117Z.html

But in general, the message stands: please don't hinge critical system
decisions on the output of pidof like this.  it's way too easy to
manipulate.

	--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pidoffooler.c
Type: text/x-csrc
Size: 384 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20100106/5c85e08d/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 891 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20100106/5c85e08d/attachment.pgp>


More information about the Pkg-acpi-devel mailing list