"bird -p" creates log file owned by root
Maria Matejka
maria.matejka at nic.cz
Fri Apr 24 17:21:47 CEST 2020
Hello!
> I found the cause. /lib/systemd/system/bird.service includes the line
> "ExecStartPre=/usr/sbin/bird -p", and if the log file doesn't exist, it
> creates it owned by root:root
>
> root at rs1:/etc/bird# rm /var/log/bird/bird.log
> root at rs1:/etc/bird# /usr/sbin/bird -p
> root at rs1:/etc/bird# ls -l /var/log/bird/bird.log
> -rw-r--r-- 1 root root 0 Apr 24 11:07 /var/log/bird/bird.log
>
>
> The documentation for the -p flag states:
>
> -p
> Just parse the config file and exit. Return value is zero if
> the config file is valid, nonzero if there are some errors.
>
> So it seems like a bug that it creates the log file.
Yes, I confirm that this is a bug. We'll fix that. Thank you for your
investigation and report.
Maria
More information about the Bird-users
mailing list