Choose style:

Author Topic: How to fix access rights of programs (Solved)  (Read 1535 times)

0 Members and 1 Guest are viewing this topic.

Offline marcdutonkin

  • Jr. Member
  • **
  • Posts: 28
  • Karma: 0
  • New Forum User
    • View Profile
How to fix access rights of programs (Solved)
« on: August 31, 2015, 08:58:23 pm »
Hello,

I am faced with a very strange situation. As soon as I start the evince application, an exception is thrown and is recorded in the syslog file :

Aug 31 23:44:53 NUC-INTEL kernel: [55268.217138] audit: type=1400 audit(1441057493.932:36): apparmor="DENIED" operation="open" profile="/usr/bin/evince" name="/etc/xdg/peppermint/applications/defaults.list" pid=15994 comm="evince" requested_mask="r" denied_mask="r" fsuid=1001 ouid=0

However, this does not preclude the application to launch.
 
I have no doubt that this situation is due to erroneous manipulations, but does anyone know how to fix it ?
« Last Edit: September 01, 2015, 01:32:45 pm by marcdutonkin »

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2007
  • Karma: 528
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: How to fix access rights of programs
« Reply #1 on: September 01, 2015, 02:43:20 am »
Hi marcdutonkin,

I am not trying to be insulting, but for things like this, and as long as the application runs properly, I usually do not bother trying to correct the situation. As the saying goes:

If its not broken, don't fix it.   ;)

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: How to fix access rights of programs
« Reply #2 on: September 01, 2015, 07:08:38 am »
it seems the evince apparmor profile is denying evince permission to read:-
/etc/xdg/peppermint/applications/defaults.list
this isn't really a big deal, but if you want to fix it, you'll need to edit the evince apparmor profile.

Open a terminal and run:
Code: [Select]
sudo gedit /etc/apparmor.d/usr.bin.evince
find the section that starts at around line 44 and reads
Code: [Select]
  # For Xubuntu to launch the browser
  /usr/bin/exo-open ixr,
  /usr/lib/@{multiarch}/xfce4/exo-1/exo-helper-1 ixr,
  /etc/xdg/xdg-xubuntu/xfce4/helpers.rc r,
  /etc/xdg/xfce4/helpers.rc r,

  # For text attachments
  /usr/bin/gedit ixr,
and add the permission to read that file by making  it read :
Code: [Select]
  # For Xubuntu to launch the browser
  /usr/bin/exo-open ixr,
  /usr/lib/@{multiarch}/xfce4/exo-1/exo-helper-1 ixr,
  /etc/xdg/xdg-xubuntu/xfce4/helpers.rc r,
  /etc/xdg/xfce4/helpers.rc r,

  # For Peppermint defaults.list
  /etc/xdg/peppermint/applications/defaults.list r,

  # For text attachments
  /usr/bin/gedit ixr,
SAVE the file and exit gedit.

Back in the terminal, reload the apparmor profiles with:
Code: [Select]
sudo service apparmor reload
you should no longer get those errors.

But like I said it's not really a problem.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline marcdutonkin

  • Jr. Member
  • **
  • Posts: 28
  • Karma: 0
  • New Forum User
    • View Profile
Re: How to fix access rights of programs
« Reply #3 on: September 01, 2015, 01:31:49 pm »
Thank you PCNetSpec, these errors do not occur anymore.  :)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: How to fix access rights of programs (Solved)
« Reply #4 on: September 01, 2015, 01:48:54 pm »
You're welcome .. thanks for marking the topic (SOLVED) :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec