The tenshi.conf file was owned by the "tenshi" user in previous
revisions. This was open to exploitation because that conf file
contains two important settings:
1. The UID that the daemon will run as.
2. The "tail" command to be run on the logfiles.
If the "tenshi" user can write to it, he can specify an arbitrary
command to be run as an arbitrary UID the next time the daemon is
started.
Thanks to Brian De Wolf for noticing the problem.
Package-Manager: Portage-2.3.6, Repoman-2.3.1
src_install() {
emake DESTDIR="${D}" install
- fowners tenshi:root /etc/tenshi/tenshi.conf
doman tenshi.8
newinitd tenshi.openrc-init tenshi