ALT Linux Bugzilla
– Attachment 18895 Details for
Bug 54947
phosh [tcb]: Отсутствие понижения привилегий при работе с greetd
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
phosh_tcb_egid_fix
phosh_tcb_egid_fix.patch (text/plain), 551 bytes, created by
Egor Shestakov
on 2025-06-26 17:34:47 MSK
(
hide
)
Description:
phosh_tcb_egid_fix
Filename:
MIME Type:
Creator:
Egor Shestakov
Created:
2025-06-26 17:34:47 MSK
Size:
551 bytes
patch
obsolete
>diff --git a/src/main.c b/src/main.c >index 7adf14ae..dc04b458 100644 >--- a/src/main.c >+++ b/src/main.c >@@ -23,6 +23,7 @@ > > #include <glib/gi18n.h> > #include <glib-unix.h> >+#include <unistd.h> > > #include <systemd/sd-daemon.h> > >@@ -122,6 +123,9 @@ get_clock (void) > int > main (int argc, char *argv[]) > { >+ int rc = setegid(getgid()); >+ if (rc < 0) >+ g_warning("failed to drop egid in the start"); > g_autoptr (GOptionContext) opt_context = NULL; > g_autoptr (GError) err = NULL; > gboolean unlocked = FALSE, locked = FALSE, version = FALSE;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54947
: 18895