[debian-mysql] Bug#801746: mysql-server-5.6: Please run restorecon on directories you create (at boot and postinst) so it works with SE Linux

Russell Coker russell at coker.com.au
Mon Oct 19 11:02:22 UTC 2015


On Thu, 15 Oct 2015, Robie Basak <robie.basak at ubuntu.com> wrote:
> > For /var/run directories if you add them to a systemd-tmpfiles
> > configuration they will get the right context.  Add a file named
> > /usr/lib/tmpfiles.d/mysql- server.conf with the following contents:
> > D /var/run/mysqld 0755 mysql root
> 
> This sounds like a better route to me.
> 
> Given that we're using systemd, should we adjust your patch to do what
> you described above instead before applying? That is, ship
> /var/lib/mysql and /var/log/mysql using dh_installdirs (if I understand
> you correctly)? The systemd service already uses RuntimeDirectory so
> will this cause the right thing to happen, or do we still need a
> /usr/lib/tmpfiles.d entry?

Yes using dh_installdirs should do it for everything other than /var/run.

If the RuntimeDirectory option causes systemd to create the directory then it 
should be created correctly.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/



More information about the pkg-mysql-maint mailing list