🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
7 messages
7 total messages Started by HIGUCHI Daisuke (VDR dai) Mon, 23 Nov 2026 08:20
Bug#1154971: lightdm-gtk-greeter: AppArmor profile prevents greeter startup with uim installed
#5699
Author: HIGUCHI Daisuke (VDR dai)
Date: Mon, 23 Nov 2026 08:20
91 lines
5078 bytes
Package: lightdm-gtk-greeter
Version: 2.0.9-3
Severity: important

Dear Maintainer,

   * What led up to the situation?

After upgrading Debian unstable and rebooting on 2026-11-23,
lightdm failed to display the GTK greeter, preventing graphicallogin.

The problem appears to be a regression introduced in lightdm-gtk-greeter 2.0.9-3,
which added an AppArmor profile for the greeter. uim is installed as an input method.

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

lightdm log reported:

> Seat seat0: Stopping; failed to start a greeter

The greeter log initially reported:

> Error: in load: file "/usr/share/uim/lib/sigscheme-init.scm" not found

/usr/share/uim/lib/sigscheme-init.scm is an initialization file for SigScheme,
the Scheme interpreter used internally by uim, an input method framework that
provides a GTK input method module (/usr/lib/*/gtk-3.0/3.0.0/immodules/im-uim.so).
When the GTK greeter initializes the uim input method module, uim needs to load this file.

The file exists and is readable by the lightdm user.
Using strace, I confirmed that the greeter was denied access to the file:

> openat(AT_FDCWD, "/usr/share/uim/lib/sigscheme-init.scm", O_RDONLY) = -1 EACCES (Permission denied)

Adding explicit AppArmor permissions for reading this file did not resolve the problem.
Switching the greeter's AppArmor profile to complain mode resolved the problem:

> aa-complain /etc/apparmor.d/lightdm-gtk-greeter

Disabling the profile entirely also worked:

> aa-disable /etc/apparmor.d/lightdm-gtk-greeter

Re-enabling enforcement caused the greeter to fail again.

   * What was the outcome of this action?

With the AppArmor profile in enforce mode, the GTK greeter failed to start
and graphical login was unavailable.
With the profile in complain mode or disabled, the greeter started normally.

   * What outcome did you expect instead?

The GTK greeter should start normally with its AppArmor profile in enforce mode,
including on systems where uim is installed.

The AppArmor profile should permit the access required by supported GTK input methods
without requiring users to disable enforcement.

-- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.118+deb13-amd64 (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to ja_JP.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 lightdm-gtk-greeter depends on:
ii  libayatana-ido3-0.4-0    0.10.4-1.1
ii  libayatana-indicator3-7  0.9.4-2.1
ii  libc6                    2.43-7
ii  libcairo2                1.18.6-1
ii  libgdk-pixbuf-2.0-0      2.44.8+dfsg-1
ii  libglib2.0-0t64          2.90.1-2
ii  libgtk-3-0t64            3.24.52-3
ii  liblightdm-gobject-1-0   1.33.1-5
ii  libx11-6                 2:1.8.14-1

Versions of packages lightdm-gtk-greeter recommends:
ii  adwaita-icon-theme  51.0-1
ii  desktop-base        14.0.0~pre3
ii  polkitd             128-1

lightdm-gtk-greeter suggests no packages.

-- no debconf information
Bug#1154971: lightdm-gtk-greeter: AppArmor profile prevents greeter startup with uim installed
#5716
Author: Yves-Alexis Perez
Date: Mon, 23 Nov 2026 10:40
41 lines
3404 bytes
--=-fWdXQpmVUqJHPtoloT35
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2026-11-23 at 17:12 +0900, HIGUCHI Daisuke (VDR dai) wrote:
> The AppArmor profile should permit the access required by supported GTK
> input methods
> without requiring users to disable enforcement.

Thanks for the report. I totally agree on that, I added an AppArmor profile=
 to
help hardening LightDM ecosystem behavior (following DSA-6633-1) but I
couldn't test every configuration.

I'll try to fix uim support but it might be easier for you (as a real world
user) to tune the profile  (the syntax should be more or less understandabl=
e
and https://gitlab.com/apparmor/apparmor/-/wikis/QuickProfileLanguage might
help) and provide a patch.

Regards,
--=20
Yves-Alexis

--=-fWdXQpmVUqJHPtoloT35
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAmsEFcYACgkQ3rYcyPpX
RFs6iAgAuEEe9pxbL6Y4zrrzeJJOpFhq583Kmi35sg9BywLBmYcL85NN8juM/dnG
t3PNmbtZXbmenVSUYJ2oX+x43iLHw+B3FzsOdI7gFv7kO4KeaG+3Zn1pHn9T2TUf
8Dfw1mWFFFfhw7OZaiYIgXvImmNUynVZdpbXmL+1wM9KPYiJVEDfb9FqhA8S9+Ao
3m2a+z2c6HlKClO3T9gRdW5FWxCrwaXJ11++vdhj75g5oL/CowzfhvOH7homx9Dc
HZcEhDkb9eTQ1Z7iwZIXVGkvRDy3/Ic3AnIsDfwXwfUu1RMiRvxZ8Gkhn8fBE3xv
bAoEGlHEHmTqH9VjTMdbdp5BZCLKaQ==
=iH7J
-----END PGP SIGNATURE-----

--=-fWdXQpmVUqJHPtoloT35--
Bug#1154971: lightdm-gtk-greeter: AppArmor profile prevents greeter startup with uim installed
#5745
Author: Yves-Alexis Perez
Date: Mon, 23 Nov 2026 13:00
67 lines
4373 bytes
--=-4rSwQ0IX3bXPKN2jUGWS
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2026-11-23 at 12:27 +0100, Valentin Pejoux wrote:
> Here are the relevant entries from journalctl -k -b (hostname anonymized)=
:
> nov. 23 10:17:12 <hostname> kernel: audit: type=3D1400
> audit(1795425431.992:127): apparmor=3D"DENIED" operation=3D"open" class=
=3D"file"
> profile=3D"/usr/sbin/lightdm-gtk-greeter" name=3D"/etc/lightdm/lightdm.co=
nf.d/"
> pid=3D5485 comm=3D"lightdm-gtk-gre" requested_mask=3D"r" denied_mask=3D"r=
" fsuid=3D106
> ouid=3D0
> nov. 23 10:17:12 <hostname> kernel: audit: type=3D1400
> audit(1795425432.128:129): apparmor=3D"DENIED" operation=3D"open" class=
=3D"file"
> profile=3D"/usr/sbin/lightdm-gtk-greeter"
> name=3D"/usr/share/images/Ducati_logo.png" pid=3D5485 comm=3D"lightdm-gtk=
-gre"
> requested_mask=3D"r" denied_mask=3D"r" fsuid=3D106 ouid=3D0

Yes those are likely related.
>=20
> The same two denials occurred again on two subsequent greeter starts (at
> 10:20 and 11:46).
>=20
> I am not very familiar with AppArmor, but these denials seem to be relate=
d
> to the issue.
>=20
> This seems to indicate that the new AppArmor profile is missing permissio=
ns
> required to access LightDM configuration directories and custom user imag=
e
> files.

Yes indeed, I'll add them.

> Could the AppArmor profile be updated to allow access to custom images
> configured through default-user-image?

I can configure read access to /u/s/images but if people use more custom
location they'll need to configure access manually.

Regards
--=20
Yves-Alexis

--=-4rSwQ0IX3bXPKN2jUGWS
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAmsEODYACgkQ3rYcyPpX
RFuXpwgAgGpmbWa0WN8rQtTc5TnFik35Jg5diO0nkHYrdubE/HxHcCkN2pTX5iZ3
fURpa0J1GrRZltoPTsQDemRx/ESocbuPA36wUFoc/2wg85l9KPILBX4lLsjGseaA
+JqQkVj0GsUwlQIG1BIHlfcPZeKDeggbeRv4T6QwzLU6cdswoUVf6mcVlHxfcnP2
uzuEjk41Y0TtOzd/QYIEgccepKyRC/zNnmjiprhPbU74BlkKfTG53yolMPwhpQMT
WPk/VCF+k+rG8xIG8K1OU2E4beNq2RytX0jH3dcjaMeLK0EwPHiMdwnwMDaEiI92
4JA02Id9ol0eaJBfDawxRR6PhAZufw==
=2SQw
-----END PGP SIGNATURE-----

--=-4rSwQ0IX3bXPKN2jUGWS--
Bug#1154971: lightdm-gtk-greeter: AppArmor profile prevents greeter startup with uim installed
#6965
Author: dai
Date: Tue, 01 Dec 2026 02:20
73 lines
4722 bytes
--Soyrnah84x4s22x7
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 23, 2026 at 11:30:30AM +0100, Yves-Alexis Perez wrote:
> Thanks for the report. I totally agree on that, I added an AppArmor profi=
le to
> help hardening LightDM ecosystem behavior (following DSA-6633-1) but I
> couldn't test every configuration.
>=20
> I'll try to fix uim support but it might be easier for you (as a real wor=
ld
> user) to tune the profile  (the syntax should be more or less understanda=
ble
> and https://gitlab.com/apparmor/apparmor/-/wikis/QuickProfileLanguage mig=
ht
> help) and provide a patch.

While I am not deeply familiar with lightdm-gtk-greeter, AppArmor, or GTK i=
nput
method modules, there appear to be two possible approaches to this issue: e=
ither
granting the necessary permissions via AppArmor, or disabling external GTK =
input
method modules within the greeter.

Regarding the former, it would make more sense from a maintainability persp=
ective
for each input method package to provide its own AppArmor abstraction.

However, I question how common the use case for requiring external input me=
thods
within the greeter=E2=80=94prior to authentication=E2=80=94actually is.

Disabling external GTK input method modules by default would not only reduc=
e the
attack surface but also eliminate the need to design, test, and maintain in=
dividual
AppArmor rules for each input method.

Certainly, there may be use cases to consider from the perspective of i18n =
and m17n
support; nonetheless, wouldn't it be worth considering disabling external i=
nput
method modules by default?
--=20
Regards,
	dai

GPG Fingerprint =3D 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E

--Soyrnah84x4s22x7
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEECynYjkLmt2W42OpQeDlhndQ5Zo4FAmsOLMMACgkQeDlhndQ5
Zo5Qeg//ZNX4YotU4MCw5PgfUr811rLDGMpwTCI2W8jyL9SCyCfiXHcfAGEat+ff
hMcLiMRlfvq1V94LN1bF8U5oeLHj5F6K63TxRROJBGYpTToRf09OpY7f+c/SofQw
if0VLmw7eSuhRR3GZRFyMMJTKCJ+XMggPWeKO6GBMaIG80pTUpGFEw44mRXnjjJv
ZnDBfOjC1nYTXkJxAcT/rDwBQrtTMfdiOC+skxj62T85vyInZZEUaI0vVLOfYA6u
qUbOdxD2G8UaZSTcAIL9Jx/m+tKAkeHOjRsoZGFHSbc5sPFo+uAlKflDVrhqrfLR
qQD1g3h4s3rKMB+Kutx/cX4riWd48LqNV2K1bLsfo+jtYrw3mj24BzkeiOuAym9J
nbwxgCW8+smfC5E8iaJ7lGK1xGeWQBrNGJf8+APUXxDN0MVqblU9GQGAw3lNX8b5
ftPBca5EH0cY3LrPOwi/bITS9aV8U2DHcwxx1yg3OukV7qAbCfM87c5eCcNPxScQ
MaPu995E5JaZP22gxvimXveQap9BF4IQxesZEknxhTH2wvqrACJJteCSnO2bMO23
LA5mbKTSHorc1G12oju7+adR5GgGEyKqCpN/6/Epcb8LsR8jzPlEc49xAILbmrlk
hcGrB9Z40MG9WK1gXKLFx4SaLJhP5jrbnT/0yCj8RIlxWPRCdIw=
=9YGL
-----END PGP SIGNATURE-----

--Soyrnah84x4s22x7--
Bug#1154971: lightdm-gtk-greeter: AppArmor profile prevents greeter startup with uim installed
#6986
Author: Yves-Alexis Perez
Date: Tue, 01 Dec 2026 10:40
40 lines
3883 bytes
On Tue, Dec 01, 2026 at 11:11:19AM +0900, dai@debian.org wrote:
> While I am not deeply familiar with lightdm-gtk-greeter, AppArmor, or GTK input
> method modules, there appear to be two possible approaches to this issue: either
> granting the necessary permissions via AppArmor, or disabling external GTK input
> method modules within the greeter.
> 
> Regarding the former, it would make more sense from a maintainability perspective
> for each input method package to provide its own AppArmor abstraction.
> 
> However, I question how common the use case for requiring external input methods
> within the greeter—prior to authentication—actually is.
> 
> Disabling external GTK input method modules by default would not only reduce the
> attack surface but also eliminate the need to design, test, and maintain individual
> AppArmor rules for each input method.
> 
> Certainly, there may be use cases to consider from the perspective of i18n and m17n
> support; nonetheless, wouldn't it be worth considering disabling external input
> method modules by default?

Hi dai,

I assumed from the initial bug report that you actually had uim
installed on purpose, but if I understand correctly that's not the case?

So I guess for the time beeing and if you don't use it, you might just
be able to remove the input method and that'll do.

Unfortunately I don't think it's really possible to disable external
input methods in LightDM by default: if someone needs them (maybe
because of disabilities), then they should work out of the box as soon
as you install them. Disabling them in LightDM and forcing people to
re-enable them defeats their purpose I think.

I'm adding uim maintainer to the recipients so they can chime in on
this.

Regards,
-- 
Yves-Alexis Perez
Bug#1154971: lightdm-gtk-greeter: AppArmor profile prevents greeter startup with uim installed
#7002
Author: dai
Date: Tue, 01 Dec 2026 13:40
72 lines
5318 bytes
--xaLThEaqwRzDY+ex
Content-Type: text/plain; charset=iso-2022-jp
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 01, 2026 at 11:33:11AM +0100, Yves-Alexis Perez wrote:
> I assumed from the initial bug report that you actually had uim
> installed on purpose, but if I understand correctly that's not the case?
>=20
> So I guess for the time beeing and if you don't use it, you might just
> be able to remove the input method and that'll do.
>=20
> Unfortunately I don't think it's really possible to disable external
> input methods in LightDM by default: if someone needs them (maybe
> because of disabilities), then they should work out of the box as soon
> as you install them. Disabling them in LightDM and forcing people to
> re-enable them defeats their purpose I think.
>=20
> I'm adding uim maintainer to the recipients so they can chime in on
> this.

There seems to be a slight misunderstanding.  I have intentionally
installed uim and use it during my regular desktop sessions.  My
suggestion was strictly to disable the GTK IM module only within
lightdm-gtk-greeter; it was not my intention to restrict the use
of input methods in user sessions after logging in.

That said, I do understand the concerns regarding accessibility in
relation to lightdm-gtk-greeter itself.

Regarding other input methods that provide GTK IM modules, such as
IBus and Fcitx, it appears that abstractions for them are provided
by the AppArmor package.  I suspect that uim is not handled in the
same way within AppArmor simply because it has a smaller user base
compared to IBus or Fcitx.

It is possible that IBus and Fcitx could be affected by similar
issues, though I have not seen any such reports at this time.  It
is unclear whether they are truly unaffected or if such issues
simply haven't been reported yet.

Given the need for consistency with other input methods, wouldn't
it be appropriate for the AppArmor package to also provide an
abstraction for uim?  If so, it might be best to reassign this bug
to the AppArmor package.
--=20
Regards,
	dai

GPG Fingerprint =3D 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E

--xaLThEaqwRzDY+ex
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEECynYjkLmt2W42OpQeDlhndQ5Zo4FAmsOy7sACgkQeDlhndQ5
Zo7XFxAA0tE718OIDATLislKVs6KhFOwKFPI+oMHtpUl4LekOIiD/7bgnEf6nno+
6Q9aUuYbx5Fh43CeGt3+ahLUPkFT3S/WPlXeEFrnVrDhA9V9QxqiUdlBDncPw7On
9rMS+Z7rxwr8AmuM4bRbgt8Ji7MoN2r/q5LON7vVWJXmi9VEL7SgbcgldVc4Stks
8kCBlN0o0c1gS2AI+bLARomhHBa6AH9Wa02BlJ0SOcU7ceaiDd3de4dHrLv4R+nI
bLHtPTrwNoOMXuPQIh0L4KdhwMJxxxApiO/dRuZ+aR6yWnubFwk5TKqxX4r5Vcl9
pQFGanFv2GV9kINLgjLR8tklgjMfnRYPC5cnrCUASHSSotZjksVmc6O3DS93506h
y6C5QqzX1vgm24AgJ45yl3srmltJ4KFObedYsH4AR5wH213nO88GYfQHfi75+6mj
Lxxfd8r7M8E8MxhdLBifqhDP9zK1qCyplK6sVF+MT47Trl5QqPyF+tC/wkW0AHzd
D4gG2oHYIyzddQtTjfOJBtXlK07wuD2QqvnDHJaVUvMJjQOOc8PcXc26TJzdZabo
Y/G3+zl6ErcK/a8P8mttu70loBXZbmfuZkidd6OWeYaTxtgq9yzOKOYU83XDGd7G
qmOqnCetnPmqmzkl3/nB5JkiKTG67qDQ+48kOcM3+N8+Xs1MT3Q=
=u/jP
-----END PGP SIGNATURE-----

--xaLThEaqwRzDY+ex--
Bug#1154971: lightdm-gtk-greeter: AppArmor profile prevents greeter startup with uim installed
#7138
Author: Yves-Alexis Perez
Date: Wed, 02 Dec 2026 10:30
56 lines
4531 bytes
--=-FvCD5tdz+CMMkagW4M1F
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, 2026-12-01 at 22:29 +0900, dai@debian.org wrote:
> There seems to be a slight misunderstanding.=C2=A0 I have intentionally
> installed uim and use it during my regular desktop sessions.=C2=A0 My
> suggestion was strictly to disable the GTK IM module only within
> lightdm-gtk-greeter; it was not my intention to restrict the use
> of input methods in user sessions after logging in.

Ok
>=20
> That said, I do understand the concerns regarding accessibility in
> relation to lightdm-gtk-greeter itself.

Again I'm not at all fluent in a11y but I kind of assumed it would be also
useful in the greeter. If that's not the case I'd be ok to disable it.
>=20
> Regarding other input methods that provide GTK IM modules, such as
> IBus and Fcitx, it appears that abstractions for them are provided
> by the AppArmor package.=C2=A0 I suspect that uim is not handled in the
> same way within AppArmor simply because it has a smaller user base
> compared to IBus or Fcitx.

Ok
>=20
> Given the need for consistency with other input methods, wouldn't
> it be appropriate for the AppArmor package to also provide an
> abstraction for uim?=C2=A0 If so, it might be best to reassign this bug
> to the AppArmor package.

Maybe let Takatsugu chime in on this, but yeah I'd be ok with a reassign he=
re.

Regards,
--=20
Yves-Alexis

--=-FvCD5tdz+CMMkagW4M1F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAmsP8oEACgkQ3rYcyPpX
RFu0yAf/b6prjag4mylYbDdnBzuJutVwm0m9ZlgIN1I0qvwOMAodmliQ3x23Iet3
KQM7Gc0k67VVNSur3ZEzSXrgzR49ErIdKGm8EPh3VVfMphTQN0UOryDvre6SqYYn
In5ZdZj98e43BIDygtR7OeVmSUG8jWBw/OP/jJI0XqXDGgpQboAvgreFpaCmP1Oy
Z0ZOLqakAwkwDfU2mOhNi4p58nUwbOkLrGzGV9plj2HN2Jfbc0bOJJo7xk34O0jc
sWYkj3Jd4+OLMf4KhetA4v79w1SWVp5OGnDekPWHM3ITLFIM07lYGOysnwAweRpw
WnovXulmz9ilDVY8icq2fcpuPmIIkg==
=h+RC
-----END PGP SIGNATURE-----

--=-FvCD5tdz+CMMkagW4M1F--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads