guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically mapping services from System to Home


From: Attila Lendvai
Subject: Re: Automatically mapping services from System to Home
Date: Tue, 28 Mar 2023 19:59:03 +0000

> Thoughts?

my gut reaction is that whatever the automatic mapping does should be 
captured/reified into the code that defines a service... factoring out the 
common parts, and adding on top of that whatever is necessary in the two 
different contexts.

but then i'm not sure i fully understand the differences between these two 
contexts, and i don't have a proposal.diff either, so...

BTW, what are the differences?

 - a possible call to setuid/setgid, and their values in the config if
   the service is not to be started as root?

 - the default values of the config file and log file(s)? possibly
   some service-specific values in the config whose default value
   depend on the user/group under which the service is running?

maybe the user/group should be a mandatory value under the hood, and the 
service code should dispatch on their values and the current effective 
user/group id, and act accordingly?

what am i missing?

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“The moral law is one of the basic laws of the universe. It is likewise called 
the principle of Karma, the result of cause and effect, or action and reaction. 
There is nothing vindictive about this principle. It works impersonally like 
any law of nature. As the fruit is contained in the seed, so the consequences 
are inherent in the act. This principle guides the destinies of both people and 
nations. Knowledge of this principle gives human beings the power to control 
our own destiny.”
        — Thor Kiimaletho




reply via email to

[Prev in Thread] Current Thread [Next in Thread]