GNU bug report logs - #70318
[PATCH] Fix unitentional creation of greeter's home directory

Previous Next

Package: guix-patches;

Reported by: lgcoelho <at> disroot.org

Date: Tue, 9 Apr 2024 23:59:01 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70318 in the body.
You can then email your comments to 70318 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#70318; Package guix-patches. (Tue, 09 Apr 2024 23:59:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to lgcoelho <at> disroot.org:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 09 Apr 2024 23:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: lgcoelho <at> disroot.org
To: guix-patches <at> gnu.org
Subject: [PATCH] Fix unitentional creation of greeter's home directory
Date: Wed, 10 Apr 2024 01:58:01 +0200
[Message part 1 (text/plain, inline)]
This patch adresses the unintentional creation of the greeter's home 
directory when using the greetd-service.
[Message part 2 (text/html, inline)]
[0001-services-base-Fix-unintentional-creation-of-greeter-.patch (text/x-diff, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#70318; Package guix-patches. (Fri, 03 Jan 2025 18:06:01 GMT) Full text and rfc822 format available.

Message #8 received at 70318 <at> debbugs.gnu.org (full text, mbox):

From: muradm <mail <at> muradm.net>
To: lgcoelho <at> disroot.org
Cc: 70318 <at> debbugs.gnu.org
Subject: Re: [bug#70318] [PATCH] Fix unitentional creation of greeter's home
 directory
Date: Fri, 03 Jan 2025 21:05:34 +0300
[Message part 1 (text/plain, inline)]
This may break greeters which are more complex than agreety. For 
instance, gtkgreet/wlgreet run under sway. One of subdependencies 
is mesa, which will want to write shader caches somewhere. Another 
one is fontconfig, doing similar thing for fonts. There may be 
others, which hard to track and tune. Some could be impossible to 
tune at all.

lgcoelho <at> disroot.org writes:

> This patch adresses the unintentional creation of the greeter's 
> home
> directory when using the greetd-service.
>
> [4. text/x-diff; 
> 0001-services-base-Fix-unintentional-creation-of-greeter-.patch]...
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#70318; Package guix-patches. (Sat, 04 Jan 2025 14:08:03 GMT) Full text and rfc822 format available.

Message #11 received at 70318 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: muradm <mail <at> muradm.net>, lgcoelho <at> disroot.org
Cc: 70318 <at> debbugs.gnu.org
Subject: Re: [bug#70318] [PATCH] Fix unitentional creation of greeter's home
 directory
Date: Sat, 04 Jan 2025 15:06:56 +0100
On 2025-01-03 21:05, muradm wrote:

> This may break greeters which are more complex than agreety. For 
> instance, gtkgreet/wlgreet run under sway. One of subdependencies 
> is mesa, which will want to write shader caches somewhere. Another 
> one is fontconfig, doing similar thing for fonts. There may be 
> others, which hard to track and tune. Some could be impossible to 
> tune at all.

Then maybe we can make it conditional on agreety?

If all greetd-configuration-terminals have their
greet-default-session-command being an greetd-agreety-session?, we could
set it to #f.

Something like this could work: 
(create-home-directory? (not (every greetd-agreety-session? (map greetd-default-session-command (greetd-configuration-terminals config)))))

WDYT?

-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#70318; Package guix-patches. (Sat, 04 Jan 2025 15:06:02 GMT) Full text and rfc822 format available.

Message #14 received at 70318 <at> debbugs.gnu.org (full text, mbox):

From: muradm <mail <at> muradm.net>
To: Nicolas Graves <ngraves <at> ngraves.fr>
Cc: 70318 <at> debbugs.gnu.org, lgcoelho <at> disroot.org
Subject: Re: [bug#70318] [PATCH] Fix unitentional creation of greeter's home
 directory
Date: Sat, 04 Jan 2025 18:05:49 +0300
[Message part 1 (text/plain, inline)]
Nicolas Graves <ngraves <at> ngraves.fr> writes:

> On 2025-01-03 21:05, muradm wrote:
>
>> This may break greeters which are more complex than agreety. 
>> For
>> instance, gtkgreet/wlgreet run under sway. One of 
>> subdependencies
>> is mesa, which will want to write shader caches somewhere. 
>> Another
>> one is fontconfig, doing similar thing for fonts. There may be
>> others, which hard to track and tune. Some could be impossible 
>> to
>> tune at all.
>
> Then maybe we can make it conditional on agreety?
>
> If all greetd-configuration-terminals have their
> greet-default-session-command being an greetd-agreety-session?, 
> we could
> set it to #f.
>
> Something like this could work:
> (create-home-directory? (not (every greetd-agreety-session? (map 
> greetd-default-session-command (greetd-configuration-terminals 
> config)))))
>
> WDYT?

2 of 3 greeters needs home. With improvements implemented by 75270 
`greetd-terminal-configuration` is detached from details of its 
`default-session-command`. By this, any user can workout its 
greeter. If we hardcode implementation of greeter in terminal user 
may loose such flexibility. Also once you implement such 
condition, you will have to maintain with any other greeter added 
in the future.

One way would be to carry this flag into `greetd-configuration`, 
IMHO will uneccessarily complicate the things. Is there any good 
reason for doing that?

What is the problem with having home directory for greeter user?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#70318; Package guix-patches. (Sat, 04 Jan 2025 17:10:01 GMT) Full text and rfc822 format available.

Message #17 received at 70318 <at> debbugs.gnu.org (full text, mbox):

From: muradm <mail <at> muradm.net>
To: Nicolas Graves <ngraves <at> ngraves.fr>
Cc: 70318 <at> debbugs.gnu.org, lgcoelho <at> disroot.org
Subject: Re: [bug#70318] [PATCH] Fix unitentional creation of greeter's home
 directory
Date: Sat, 04 Jan 2025 20:08:58 +0300
[Message part 1 (text/plain, inline)]
muradm <mail <at> muradm.net> writes:

>>
>> Then maybe we can make it conditional on agreety?
>>
>> If all greetd-configuration-terminals have their
>> greet-default-session-command being an greetd-agreety-session?, 
>> we
>> could
>> set it to #f.
>>
>> Something like this could work:
>> (create-home-directory? (not (every greetd-agreety-session? 
>> (map
>> greetd-default-session-command (greetd-configuration-terminals
>> config)))))
>>
>> WDYT?
>
> 2 of 3 greeters needs home. With improvements implemented by 
> 75270
> `greetd-terminal-configuration` is detached from details of its
> `default-session-command`. By this, any user can workout its 
> greeter.
> If we hardcode implementation of greeter in terminal user may 
> loose
> such flexibility. Also once you implement such condition, you 
> will
> have to maintain with any other greeter added in the future.
>
> One way would be to carry this flag into `greetd-configuration`, 
> IMHO
> will uneccessarily complicate the things. Is there any good 
> reason for
> doing that?
>
> What is the problem with having home directory for greeter user?

After some more meditation, I remembered that originally I also 
did not like idea of having extra user home directory and 
considering changes introduced by #75270, it became obvious that 
sway specific environment can be setup within 
`make-greetd-sway-greeter-command`. Further greeters may either 
improve on it, or provide their own entry point commands as they 
see fit. v2 of 75270 includes this change, and adjusts the 
environment accordingly. This issue can be closed in favor if 
75270.
[signature.asc (application/pgp-signature, inline)]

bug closed, send any further explanations to 70318 <at> debbugs.gnu.org and lgcoelho <at> disroot.org Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 06 Feb 2025 13:35:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 07 Mar 2025 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.