Pat, you have obviously not looked at what the config looks like, so I
will cut and past for your benefit.


Code:
--------------------
    
  # SqueezeCenter Apparmor Changes for MySqld
  /var/lib/squeezecenter/cache/ r,
  /var/lib/squeezecenter/cache/my.cnf r,
  /var/lib/squeezecenter/cache/mysql.startup rw,
  /var/lib/squeezecenter/cache/mysql-error-log.txt rw,
  /var/lib/squeezecenter/cache/squeezecenter-mysql.pid w,
  /var/lib/squeezecenter/cache/squeezecenter-mysql.sock w,
  /var/lib/squeezecenter/cache/MySQL/ r,
  /var/lib/squeezecenter/cache/MySQL/** rwk,
  
--------------------


This is from my /etc/apparmor.d/usr.sbin.mysqld control file as
installed by the squeezecenter debian package post-install process.

The first thing I notice when I open this file is that this stanza is
repeated 3 times.  When I said "messy job", I should have said
"completely boneheaded".  The install script does NOT check to see if
it's been run before.  So mistake #1 by Logitech was not having a test
for "has this been installed".

The next thing the install script does is dump the previous copy of the
file into the SAME DIRECTORY with the name
usr.sbin.mysqld.squeezecenter.orig.  Of course this file contains no
permissions for squeezecenter.  The apparmor startup script reads all
the permission control files in lexical order which means that the
second instance of the /usr/sbin/mysqld { } that doesn't contain any
permissions is used instead of the patched version.  This is perfectly
reproducible, and painfully obvious by looking at the syslog and
squeezecenter error logs.  Mistake #2 is Logitech's fault for not
testing properly.

This is not the first time they've done something like this.  In a
previous iteration of the debian package they would add "restarting
squeezecenter" to the post-install script every time they built the
package.  This caused squeezecenter to be restarted ~15 times each time
you installed the package.  Thankfully they fixed that one.

Their testing of the debian package is bare minimal, and doesn't ever
seem to be done with a clean install of either Debian/Ubuntu, nor the
squeezecenter package itself.


-- 
SuperQ
------------------------------------------------------------------------
SuperQ's Profile: http://forums.slimdevices.com/member.php?userid=2139
View this thread: http://forums.slimdevices.com/showthread.php?t=52549

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to