From: Vitaly Chikunov <vt@altlinux.org> To: ALT Linux kernel packages development <devel-kernel@lists.altlinux.org> Subject: Re: [d-kernel] [PATCH 1/1] kiosk: MIN_UID 500 -> 1000 Date: Tue, 25 Feb 2025 04:07:09 +0300 Message-ID: <20250225010709.bihwtn3bugripkc4@altlinux.org> (raw) In-Reply-To: <fbcfa0a61c11e2a63328ed033ad54dc768f5a4d5.1740037202.git.mcpain@altlinux.org> Oleg, On Thu, Feb 20, 2025 at 10:58:58AM +0300, mcpain@altlinux.org wrote: > From: Oleg Solovyov <mcpain@altlinux.org> > > --- > security/kiosk/kiosk_lsm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/kiosk/kiosk_lsm.c b/security/kiosk/kiosk_lsm.c > index 3cd4972086a4..18f810a1ce0f 100644 > --- a/security/kiosk/kiosk_lsm.c > +++ b/security/kiosk/kiosk_lsm.c > @@ -282,7 +282,7 @@ static int kiosk_bprm_check_security(struct linux_binprm *bprm) > if (kiosk_mode == KIOSK_PERMISSIVE) > return 0; > > - if (cur_uid >= 500) { > + if (cur_uid >= 1000) { Раз этот параметр зависит от user space, то, возможно, стоило сделать этот параметр управляемым из user space. Пользователи могут экспериментировать с ядрами из других бранчей или заданий, или майнтайнеры могут делать "карманы" с копией ядрам из Сизифа собранного для конкретного бранча. В этом случае они могут не заметить, что защита не работает. Просто мысль, не предлагаю это реализовывать. > bprm->secureexec = 1; > if (bprm->executable != bprm->interpreter) > return 0; > -- > 2.42.4 > > _______________________________________________ > devel-kernel mailing list > devel-kernel@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/devel-kernel
next prev parent reply other threads:[~2025-02-25 1:07 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-02-20 7:58 [d-kernel] [PATCH 0/1] kiosk: change UID_MIN mcpain 2025-02-20 7:58 ` [d-kernel] [PATCH 1/1] kiosk: MIN_UID 500 -> 1000 mcpain 2025-02-21 9:32 ` Sergey V Turchin 2025-02-21 11:46 ` Ivan A. Melnikov 2025-02-21 13:11 ` Sergey V Turchin 2025-02-25 1:07 ` Vitaly Chikunov [this message] 2025-02-25 10:40 ` Oleg Solovyov 2025-02-21 18:11 ` [d-kernel] [PATCH 0/1] kiosk: change UID_MIN Vitaly Chikunov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20250225010709.bihwtn3bugripkc4@altlinux.org \ --to=vt@altlinux.org \ --cc=devel-kernel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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