[Desktop-packages] [Bug 462419] Re: evince apparmor profile prevents movies from opening

2021-07-05 Thread Rolando Garza
By the end of the previous comment I had experienced a weird bug.  But I
decided to post it here as a separate comment because this is still
relevant to this thread.

I resolved the issues by:

1. changing the default player
2. opening a PDF document that contains a link to a local video
3. clicking the link to the video (and failing to open)
4. closing evince and opening the same document again
5. clicking the link to the video again (and succeeding this time)

I had to reproduce those steps for both totem and for vlc, ... but now,
everything just works!

After that initial hurdle, changing default players results in opening
the correct default video player.

I'm not really sure what happened, but the issue just fixed itself.

There are still some odd messages in the kernel log (see attached file).

I don't know if this is reproducible elsewhere, or if this bug should be
marked as resolved or not, as I'm way past due to do a clean install of
the newest Ubuntu:

rolandog@computer:~$ lsb_release -rd
Description:Ubuntu 20.10
Release:20.10

rolandog@computer:~$ apt-cache policy evince
evince:
  Installed: 3.38.0-1
  Candidate: 3.38.0-1
  Version table:
 *** 3.38.0-1 500
500 http://nl.archive.ubuntu.com/ubuntu groovy/main amd64 Packages
100 /var/lib/dpkg/status

I hope this helps out someone getting unexpected behavior.

** Attachment added: "rolandog-apparmor-kernel-audit-2.txt"
   
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/462419/+attachment/5509157/+files/rolandog-apparmor-kernel-audit-2.txt

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to evince in Ubuntu.
https://bugs.launchpad.net/bugs/462419

Title:
  evince apparmor profile prevents movies from opening

Status in apparmor package in Ubuntu:
  Fix Released
Status in evince package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: evince

  Trying to open a movie with vlc or totem from within evince. I get the
  error: "Failed to execute child process vlc (Permission denied)". The
  same with totem.

  I have been looking at all the "apparmor prevents" bugs that have been
  reported of late. DVI printing, chromium, etc... the package
  maintainers' strategy has been to add an exceptions to the apparmor
  profile as the bugs come in. May I comment that this is a ludicrous
  situation? There are going to be numerous helper applications that
  people might want to use within a PDF file... why is apparmor blocking
  them all?

  [22:47][kirkwood][~] > lsb_release -rd
  Description:Ubuntu 9.10
  Release:9.10
  [22:48][kirkwood][~] > apt-cache policy evince
  evince:
Installed: 2.28.1-0ubuntu1
Candidate: 2.28.1-0ubuntu1
Version table:
   *** 2.28.1-0ubuntu1 0
  500 http://us.archive.ubuntu.com karmic/main Packages
  100 /var/lib/dpkg/status

  Expected to happen: movie opens when clicked on
  What happens instead: help application (totem/vlc) prevented from running by 
apparmor
  Reproducible: 100%

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/462419/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 462419] Re: evince apparmor profile prevents movies from opening

2021-07-05 Thread Rolando Garza
Hello everyone.

I've read the whole thread and I am experiencing a related bug.

My specific scenario is that I'm creating a PDF (by exporting from Emacs
/ Org-Mode) that contains a link to a local video.  It may have been a
recent change in an AppArmor that has resulted in the videos not opening
anymore (or maybe a security patch?), but I'm not able to open either
mp4 or webm videos like I could with mpv.

I read the /etc/apparmor.d/abstractions/evince file, and added the
following to the /etc/apparmor.d/local/usr.bin.evince file:

# vim:syntax=apparmor
#
# abstraction used by evince binaries
#

  # supported archivers
  /usr/bin/mpv ixr,
  /usr/bin/totem ixr,
  /usr/bin/vlc ixr,

After performing:

rolandog@computer:~$ sudo apparmor_parser --reload
/etc/apparmor.d/usr.bin.evince

I get the following error:

profile /usr/bin/evince: has merged rule /usr/bin/totem with conflicting x 
modifiers
ERROR merging rules for profile /usr/bin/evince, failed to load

Playback with mpv (the player I had set as default) still doesn't work
(is blocked by AppArmor), and, after running the following command, I
get the messages shown in the attached file:

rolandog@computer:~$ grep audit /var/log/kern.log

After removing the totem line I get a similar error, but for vlc.  After
removing both the totem line and the vlc line, I don't get an error (and
I can launch mpv (the default I had set).

However, I'm torn because this worked for me, but there may be others
that may have similar use-cases to mine that would prefer other players.

** Attachment added: "Semi-anonymized matching audit kernel logs from rolandog"
   
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/462419/+attachment/5509133/+files/rolandog-apparmor-kernel-audit.txt

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to evince in Ubuntu.
https://bugs.launchpad.net/bugs/462419

Title:
  evince apparmor profile prevents movies from opening

Status in apparmor package in Ubuntu:
  Fix Released
Status in evince package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: evince

  Trying to open a movie with vlc or totem from within evince. I get the
  error: "Failed to execute child process vlc (Permission denied)". The
  same with totem.

  I have been looking at all the "apparmor prevents" bugs that have been
  reported of late. DVI printing, chromium, etc... the package
  maintainers' strategy has been to add an exceptions to the apparmor
  profile as the bugs come in. May I comment that this is a ludicrous
  situation? There are going to be numerous helper applications that
  people might want to use within a PDF file... why is apparmor blocking
  them all?

  [22:47][kirkwood][~] > lsb_release -rd
  Description:Ubuntu 9.10
  Release:9.10
  [22:48][kirkwood][~] > apt-cache policy evince
  evince:
Installed: 2.28.1-0ubuntu1
Candidate: 2.28.1-0ubuntu1
Version table:
   *** 2.28.1-0ubuntu1 0
  500 http://us.archive.ubuntu.com karmic/main Packages
  100 /var/lib/dpkg/status

  Expected to happen: movie opens when clicked on
  What happens instead: help application (totem/vlc) prevented from running by 
apparmor
  Reproducible: 100%

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/462419/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp