app-admin/logsurfer+: new revision to prevent PID file manipulation.
authorMichael Orlitzky <mjo@gentoo.org>
Tue, 22 Aug 2017 00:23:04 +0000 (20:23 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Tue, 22 Aug 2017 00:23:27 +0000 (20:23 -0400)
commit3dbd8e0a71b7aabceedf523c71fe2461cb9edc33
tree5c3540149e9611a7c336e495f681892d129583a9
parent231ac427ae995a10d8c558c1bba2fa07bb0eb94d
app-admin/logsurfer+: new revision to prevent PID file manipulation.

Previous versions of the logsurfer init script used start-stop-daemon
to run logsurfer as the "logsurfer" user, but let the daemon create
its own PID file. As a result, the "logsurfer" user needed to be able
to write to its PID file, and therein lies a minor security
vulnerability: if the daemon is compromised, the "logsurfer" user can
write an arbitrary PID into the file, later to be SIGKILLed by root
when he attempts to stop the service.

Since logsurfer cannot drop privileges on its own, the new init script
fixes this by running it in the foreground, and letting OpenRC manage
the PID file.

Gentoo-Bug: 628560

Package-Manager: Portage-2.3.6, Repoman-2.3.1
app-admin/logsurfer+/files/logsurfer-1.8.initd-r1 [new file with mode: 0644]
app-admin/logsurfer+/logsurfer+-1.8-r3.ebuild [new file with mode: 0644]