olle.norell;317272 Wrote: 
> Thank you! Actually, I do have the "apparmor problem"...
> 
> By stopping apparmor, starting slimserver, and starting apparmor, I can
> use my 6.5.4, and it works great!
> 
> But I have do do this everytime I reboot :/
> 
> 
> 
> So I have to run with Apparmor stopped? There must be a way to tell
> aparmor that slimserver is not dangerous...
> Like in firewalls, you can make exeptions for chosen programs...
> 
> Mabye I should go on at ubuntuforums.org, and ask them how to make
> apparmor co-exist with slimserver?
> 
> Thanks for your help!

The fix in 7.0.1 modifies the mysql apparmor profile to allow SC to
run.  The following text needs to be added to:
/etc/apparmor.d/usr.sbin.mysqld

# 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 text is inserted before the final "}" at the bottom of the file. 
This is essentially what the 7.0.1+ fix does.  See
http://bugs.slimdevices.com/show_bug.cgi?id=7580 which identified the
fix in later releases of SC.

When you've patched the file, restart apparmor and restart SC.

An alternative would be to disable the mysqld profile in apparmor, see
ubuntu forums on how to do this.


-- 
Ramage

T5500 1.6GHz, SC 7.1-20404 Win Vista, Alien 2.0
P4 2.6GHz, SC 7.1-20404 WinXP, Alien 2.0
P2 266MHz, ClarkConnect 4.1, SC 7.1-21175, Alien 2.0
AMD64x2 ubuntu 8.04, SC 7.2~21242, Alien 2.0
------------------------------------------------------------------------
Ramage's Profile: http://forums.slimdevices.com/member.php?userid=5343
View this thread: http://forums.slimdevices.com/showthread.php?t=47424

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

Reply via email to