mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
viewing DjVu and PostScript files (#78)
This commit is contained in:
parent
0667c43be6
commit
fcee586e9e
1 changed files with 5 additions and 0 deletions
|
@ -24,12 +24,15 @@ profile evince @{exec_path} {
|
||||||
/{usr/,}bin/{,ba,da}sh rix,
|
/{usr/,}bin/{,ba,da}sh rix,
|
||||||
/{usr/,}bin/gio-launch-desktop rPx,
|
/{usr/,}bin/gio-launch-desktop rPx,
|
||||||
|
|
||||||
|
/usr/share/djvu/{,**} r,
|
||||||
/usr/share/evince/{,**} r,
|
/usr/share/evince/{,**} r,
|
||||||
|
/usr/share/ghostscript/{,**} r,
|
||||||
/usr/share/poppler/{,**} r,
|
/usr/share/poppler/{,**} r,
|
||||||
/usr/share/thumbnailers/{,*} r,
|
/usr/share/thumbnailers/{,*} r,
|
||||||
/usr/share/themes/{,**} r,
|
/usr/share/themes/{,**} r,
|
||||||
|
|
||||||
owner @{user_share_dirs}/ r,
|
owner @{user_share_dirs}/ r,
|
||||||
|
owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
||||||
owner @{user_cache_dirs}/thumbnails/{,**} rw,
|
owner @{user_cache_dirs}/thumbnails/{,**} rw,
|
||||||
owner @{user_config_dirs}/evince/{,*} rw,
|
owner @{user_config_dirs}/evince/{,*} rw,
|
||||||
|
|
||||||
|
@ -42,5 +45,7 @@ profile evince @{exec_path} {
|
||||||
|
|
||||||
/dev/tty rw,
|
/dev/tty rw,
|
||||||
|
|
||||||
|
deny /{usr/,}lib/ r, # asks when viewing PostScript files
|
||||||
|
|
||||||
include if exists <local/evince>
|
include if exists <local/evince>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue