[Top][All Lists]

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

Re: A postinst equivalent in Guix?

From: John Darrington
Subject: Re: A postinst equivalent in Guix?
Date: Wed, 25 Jan 2017 14:42:41 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Jan 25, 2017 at 02:15:12PM +0100, Ludovic Court??s wrote:
     Christopher Allan Webber <address@hidden> skribis:
     > Ludovic Court??s writes:
     >> Georgi Kirilov <address@hidden> skribis:
     >>> On Sat, Jan 21, 2017 at 04:34:55PM +0100, Ludovic Court??s wrote:
     >>>>To make things more concrete, we could discuss specific packages you 
     >>>>interested in and see how we could provide them in Guix{,SD}.
     >>> The package is the old bsd-games bundle. Some of the games need to
     >>> write score files under /var/lib/bsdgames/
     >>> You can find attached my patch so far.
     >> The patch looks good to me!
     >> As for /var/lib/bsdgames, then it???s up to the admin to set the right
     >> permissions on it.  We can ensure that it exists and has the right
     >> permissions on GuixSD, but on foreign distros, there???s nothing we can
     >> do.
     >> We could also modify bsd-games such that it falls back to
     >> ~/.local/bsdgames when /var/lib/bsdgames isn???t accessible (and it 
     >> be worth submitting upstream).  ISTR this was discussed for one of the
     >> games present in Guix.
     >> WDYT?
     >> Ludo???.
     > I'm a bit wary about GuixSD packages declaring being able to write to
     > /var/ anything by default.  What would the permissions be?  I guess if
     > it were world-writable to all "users" group users it would be okayish.
     > Note that KoboDeluxe includes a patch snarfed from Debian that comments
     > out the ability to save score files for this same reason, and it was
     > marked in Debian as a security patch IIRC...
     Yeah, I think scores in /var are a remnant of the past.  Unix just lacks
     a good way to address this use case.
     So it sounds best for games to use a score file under $HOME by default.
I always thought the unix way was rather nice.   The scores file was owned by 
"games" and programs which wanted to write to them were setuid games.

That way everyone on the system shares the same scores file.


Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature

reply via email to

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