You are not logged in.

#1 2015-08-08 14:35:01

inflextau
Member
Registered: 2014-06-28
Posts: 15

AppArmor:PopcornTime breaks even in Complain mode [SOLVED]

I'm trying to create an apparmor profile for PopcornTime but whenever I put PT into either complain or enforce mode it crashes when run. When I run it in terminal I get the error.

LaunchProcess: failed to execvp: 
/proc/self/exe
[18412:0808/130230:ERROR:child_process_launcher.cc(479)] 
Failed to launch child process
[20353:0808/133143:ERROR:channel.cc(305)] RawChannel read error (connection broken)

I'm using aa-logprof and I can never generate a profile that is able to surmount this faliure, even when adding even more lenient permissions by manually. I've tried giving full rights to /proc/** with no luck. The strange part is that this is happening in complain mode as well. Does anyone have any thoughts on this?

Last edited by inflextau (2015-08-13 07:52:44)

Offline

#2 2015-08-10 20:01:24

fernan82
Member
Registered: 2014-07-02
Posts: 11

Re: AppArmor:PopcornTime breaks even in Complain mode [SOLVED]

Use:

tail -f /var/log/audit/audit.log

to monitor your audit log and run Popcorn-Time from another terminal. You'll see why it's failing.

I use the following profile for Popcorn-Time, I remember getting that same error when I created it but I don't remember what caused it.

https://github.com/fernando-rodriguez/a … pcorn-Time

Offline

#3 2015-08-13 07:52:13

inflextau
Member
Registered: 2014-06-28
Posts: 15

Re: AppArmor:PopcornTime breaks even in Complain mode [SOLVED]

Thanks, I had to edit the profile to make it fit with the AUR package but it worked in the end. There does seem to be a bug in AppArmor since complain mode does behave very weirdly with this app.

Last edited by inflextau (2015-08-13 07:53:17)

Offline

#4 2015-08-13 18:37:38

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: AppArmor:PopcornTime breaks even in Complain mode [SOLVED]

inflextau wrote:

seem to be a bug in AppArmor

Possibly, but not necessarily. Could also be a bug in your app, e.g. a race condition or timing bug. These are bugs which can mostly remain hidden.

Offline

Board footer

Powered by FluxBB