ALT Linux kernel packages development
 help / color / mirror / Atom feed
* [d-kernel] [PATCH 0/2] Kiosk: turn off secureexec for allowed executables
@ 2025-08-06 13:18 mcpain
  2025-08-06 13:18 ` [d-kernel] [PATCH 1/2] kiosk: split kiosk_nl_send_* mcpain
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: mcpain @ 2025-08-06 13:18 UTC (permalink / raw)
  To: devel-kernel

From: Oleg Solovyov <mcpain@altlinux.org>

Modern desktop environments tends to become incompatible with kiosk.
KDE works so far but systemd unit fails to launch [1]
GNOME breaks fatally [2]

This happens because /lib/systemd/systemd uses secure_getenv() to get
environment variables and receives NULL since secureexec is enforced by
Kiosk LSM.

Since I am uncertain what else is to be replaced with getenv() in
systemd and how much things it will break in future I chose to allow
running those executables without setting up secureexec.

By default, secureexec is set unless explicitly told not to do so.

[1] https://bugzilla.altlinux.org/55130
[2] https://bugzilla.altlinux.org/55518

Oleg Solovyov (2):
  kiosk: split kiosk_nl_send_*
  kiosk: add secureexec parameter

 security/kiosk/kiosk_lsm.c | 59 ++++++++++++++++++++++++++++++++++----
 1 file changed, 54 insertions(+), 5 deletions(-)

-- 
2.50.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-08-07  8:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-06 13:18 [d-kernel] [PATCH 0/2] Kiosk: turn off secureexec for allowed executables mcpain
2025-08-06 13:18 ` [d-kernel] [PATCH 1/2] kiosk: split kiosk_nl_send_* mcpain
2025-08-06 13:57   ` Vitaly Chikunov
2025-08-06 14:26     ` Oleg Solovyov
2025-08-06 13:18 ` [d-kernel] [PATCH 2/2] kiosk: add secureexec parameter mcpain
2025-08-06 14:06 ` [d-kernel] [PATCH 0/2] Kiosk: turn off secureexec for allowed executables Vitaly Chikunov
2025-08-06 14:39   ` [d-kernel] " Oleg Solovyov
2025-08-06 22:40     ` [d-kernel] " Vitaly Chikunov
2025-08-07  8:03       ` [d-kernel] " Oleg Solovyov

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git