AppArmor prevents opening LibreOffice Writer documents from another HDD

Bug #1751762 reported by theghost
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I try to open a LibreOffice Writer document from another HDD which is mounted on to my main HDD, AppArmor prevents LibreOffice from opening it.

Steps to reproduce:

1. Use Nautilus to go to your document (on the mounted HDD)
2. Double-Click the document
3. LibreOffice splash screen appears and closes a few seconds
4. Nothing happens

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: apparmor 2.11.0-2ubuntu17.1
ProcVersionSignature: Ubuntu 4.13.0-36.40-generic 4.13.13
Uname: Linux 4.13.0-36-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Feb 26 12:21:18 2018
InstallationDate: Installed on 2018-01-20 (36 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcKernelCmdline: BOOT_IMAGE=/vmlinuz-4.13.0-36-generic.efi.signed root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: apparmor
Syslog:

UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
theghost (theghost) wrote :
Revision history for this message
theghost (theghost) wrote :

I had to remove kern.log because of privacy issues.
Everytime I reproduce the steps in dmesg the following appears:

[10307.005189] audit: type=1400 audit(1519644772.404:257): apparmor="DENIED" operation="open" profile="libreoffice-oopslash" name="/run/user/1000/gdm/Xauthority" pid=9839 comm="oosplash" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[10307.008261] audit: type=1400 audit(1519644772.407:258): apparmor="DENIED" operation="open" profile="libreoffice-oopslash" name="/sys/devices/virtual/block/dm-0/queue/rotational" pid=9839 comm="oosplash" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[10307.011447] audit: type=1400 audit(1519644772.410:259): apparmor="DENIED" operation="open" profile="libreoffice-oopslash" name="/sys/devices/virtual/block/dm-0/queue/rotational" pid=9839 comm="oosplash" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[10307.040012] audit: type=1400 audit(1519644772.439:260): apparmor="DENIED" operation="open" profile="libreoffice-soffice" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/uevent" pid=9859 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[10307.040014] audit: type=1400 audit(1519644772.439:261): apparmor="DENIED" operation="open" profile="libreoffice-soffice" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/uevent" pid=9859 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[10307.040063] audit: type=1400 audit(1519644772.439:262): apparmor="DENIED" operation="open" profile="libreoffice-soffice" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/uevent" pid=9859 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[10307.040075] audit: type=1400 audit(1519644772.439:263): apparmor="DENIED" operation="open" profile="libreoffice-soffice" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/uevent" pid=9859 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[10307.042326] audit: type=1400 audit(1519644772.441:264): apparmor="DENIED" operation="open" profile="libreoffice-soffice" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/uevent" pid=9859 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[10307.042338] audit: type=1400 audit(1519644772.441:265): apparmor="DENIED" operation="open" profile="libreoffice-soffice" name="/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/uevent" pid=9859 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[10307.252816] audit: type=1400 audit(1519644772.651:266): apparmor="DENIED" operation="open" profile="libreoffice-soffice" name=foo pid=9858 comm="soffice.bin" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=1000

affects: apparmor (Ubuntu) → libreoffice (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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