Bug#1041490: libreoffice-common: AppArmor profile for libreoffice-oosplach needs wayland abstraction

2023-07-19 Thread jleivent
On Wed, 19 Jul 2023 19:41:52 +0200
Rene Engelhard  wrote:

> tag 1041490 + moreinfo
> 
> thanks
> 
> 
> Hi,
> 
> 
> Am 19.07.23 um 19:05 schrieb Jonathan Leivent:
> > * What led up to the situation?
> >
> > Attempt to run libreoffice in a Wayland compositor desktop without
> > XWayland support  
> 
> What happens then?

I get the error: "Gdk-Message: 19:20:01.316: Error reading events from
display: Invalid argument"

> 
> >
> > * What exactly did you do (or not do) that was effective (or
> >   ineffective)?
> >
> > Disabled the libreoffice AppArmor profiles  
> 
> Which one?

I disabled them all, but I think the only one that needs disabling is
the oosplash one.  That one includes the X abstraction, but no wayland
abstraction.  The others include the gnome abstraction which includes
the wayland abstraction, so they get it indirectly.

> 
> 2 profiles are in complain mode.
>     libreoffice-oosplash
>     libreoffice-soffice

That's an excelent point.  Why then did it fail and was so easily fixed
by using aa-disable?  I just assumed immediately when I saw that the
oosplash profile includes the X abstraction but not the wayland
abstraction (or any other that would pull in the wayland abstraction
indirectly, like gnome) that this caused my failure.

Are there apparmor issues with it causing failures even though in
complain mode?  That would be a much more serious bug.

I can attempt to replicate the situation with some other debug settings
if you know of any I can use.

> 
> Those who would matter during startup (as you imply below) are only
> in complain mode, not enforcing..
> 
> > * What outcome did you expect instead?
> >
> > Yes.  
> 
> That answer doesn't fit the question :)

Sorry - I read the question as "Was the outcome what you expected" for
some reason.  The answer here should be that the outcome was that I
successfully started libreoffice after aa-disabling the libreoffice
apparmor profiles, and that was what I expected.



Bug#1041490: libreoffice-common: AppArmor profile for libreoffice-oosplach needs wayland abstraction

2023-07-19 Thread Rene Engelhard

tag 1041490 + moreinfo

thanks


Hi,


Am 19.07.23 um 19:05 schrieb Jonathan Leivent:

* What led up to the situation?

Attempt to run libreoffice in a Wayland compositor desktop without XWayland 
support


What happens then?



* What exactly did you do (or not do) that was effective (or
  ineffective)?

Disabled the libreoffice AppArmor profiles


Which one?

2 profiles are in complain mode.
   libreoffice-oosplash
   libreoffice-soffice

Those who would matter during startup (as you imply below) are only in 
complain mode, not enforcing..



* What outcome did you expect instead?

Yes.


That answer doesn't fit the question :)


Regards,


Rene



Bug#1041490: libreoffice-common: AppArmor profile for libreoffice-oosplach needs wayland abstraction

2023-07-19 Thread Jonathan Leivent
Package: libreoffice-common
Version: 4:7.4.5-3
Severity: important
X-Debbugs-Cc: jleiv...@comcast.net

Dear Maintainer,

   * What led up to the situation?

Attempt to run libreoffice in a Wayland compositor desktop without XWayland 
support

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

Disabled the libreoffice AppArmor profiles

   * What was the outcome of this action?

With libreoffice's AppArmor profiles disabled, it starts without issue

   * What outcome did you expect instead?

Yes.


-- Package-specific info:
Configuration filePackage Exists Changed
/etc/libreoffice/registry/Langpack-en-US.xcd  libreoffice-common  Yes No
/etc/libreoffice/registry/lingucomponent.xcd  libreoffice-common  Yes No
/etc/libreoffice/registry/main.xcdlibreoffice-common  Yes No
/etc/libreoffice/registry/pdfimport.xcd   libreoffice-common  Yes No
/etc/libreoffice/registry/res/fcfg_langpack_e libreoffice-common  Yes No
/etc/libreoffice/registry/xsltfilter.xcd  libreoffice-common  Yes No

-- System Information:
Debian Release: 12.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-10-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libreoffice-common depends on:
ii  libnumbertext-data 1.0.11-1
ii  libreoffice-style-colibre  4:7.4.5-3
ii  ucf3.0043+nmu1
ii  ure4:7.4.5-3

Versions of packages libreoffice-common recommends:
ii  apparmor3.0.8-3
ii  fonts-liberation2   2.1.5-1
ii  libexttextcat-data  3.4.5-1
ii  poppler-data0.4.12-1
ii  python3-uno 4:7.4.5-3
ii  xdg-utils   1.1.3-4.1

Versions of packages libreoffice-common suggests:
ii  libreoffice-style-colibre [libreoffice-style]  4:7.4.5-3

-- no debconf information