https://bugs.documentfoundation.org/show_bug.cgi?id=99251

            Bug ID: 99251
           Summary: Can't apparmor secure libreoffice splash screen
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: gquigs+b...@gmail.com

Generate apparmor profiles per /sysui/desktop/share/apparmor.sh script.

Note, how it longer lets LibreOffice startup. If you delete the apparmor
oosplash it works fine.

Even if you give very open permissions:
  /**                rmw,
  /*                rmw,
  /                rmw,
It still doesn't work.  

The apparmor audit logs doesn't say what is failing.  It seems with apparmor
enabled the splash screen "forgets" where it is, see strace excerpt:

[pid 22837] open("tls/x86_64/libsofficeapp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
[pid 22837] open("tls/libsofficeapp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No
such file or directory)
[pid 22837] open("x86_64/libsofficeapp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No
such file or directory)
[pid 22837] open("libsofficeapp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)
....
[pid 22837] stat("/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=20480,
...}) = 0
[pid 22837] open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libsofficeapp.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
....
[pid 22837] open("/lib/tls/libsofficeapp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
[pid 22837] stat("/lib/tls", 0x7ffdda746460) = -1 ENOENT (No such file or
directory)
[pid 22837] open("/lib/x86_64/libsofficeapp.so", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
[pid 22837] stat("/lib/x86_64", 0x7ffdda746460) = -1 ENOENT (No such file or
directory)
....
[pid 22837] stat("/usr/lib/tls", 0x7ffdda746460) = -1 ENOENT (No such file or
directory)
[pid 22837] open("/usr/lib/x86_64/libsofficeapp.so", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
[pid 22837] stat("/usr/lib/x86_64", 0x7ffdda746460) = -1 ENOENT (No such file
or directory)
[pid 22837] open("/usr/lib/libsofficeapp.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
[pid 22837] stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
[pid 22837] writev(2, [{"/opt/libreofficedev5.2/program/s"..., 42}, {": ", 2},
{"error while loading shared libra"..., 36}, {": ", 2}, {"libsofficeapp.so",
16}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such
file or directory", 25}, {"\n", 1}],
10/opt/libreofficedev5.2/program/soffice.bin: error while loading shared
libraries: libsofficeapp.so: cannot open shared object file: No such file or
directory

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to