apparmor doesn't let telepathy-logger directory to be symlinked

Bug #990443 reported by Stefanauss
2
Affects Status Importance Assigned to Milestone
telepathy-logger (Ubuntu)
New
Undecided
Unassigned

Bug Description

Experienced while running Ubuntu 11.10 and 12.04 LTS.

Version of Empathy (12.04 LTS): 3.4.1-0ubuntu1

For backup and multiboot reasons, i symlink /home/{user}/.local/share/TpLogger to /media/mainhome/{user}/.local/share/TpLogger in order to have a shared place for backing up conversation logs.
I use this approach for a number of applications, and It works perfectly fine across multiple linux distributions.

However when I try to do the some for Empathy, this doesn't work.

What is expected: I setup my Empathy accounts, then symlink the log directory. Empathy will read from/store logs to the symlinked location.

What happens: I setup my Empathy accounts, then symlink the log directory. Empathy reads existing logs from the symlinked location but is unable to store/create new logs.

From the dmesg output, I'm almost certain this is due to apparmor profiles. The output is attached, it show the relevant output of two different account (Facebook and GTalk) trying to write in the log directory.

I've been able to workaround the issue by adding the following lines to /etc/apparmor.d/usr.lib.telepathy under

    owner @{HOME}/.local/share/TpLogger/ rw,
    owner @{HOME}/.local/share/TpLogger/** rwk,

# MY ADDS

 owner /media/mainhome/[USER]/.local/share/TpLogger/ rw,
 owner /media/mainhome/[USER]/.local/share/TpLogger/** rwk,

Could this be done distro-wise?

Tags: bot-comment
Revision history for this message
Stefanauss (stefanauss) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/990443/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → telepathy-logger (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.