unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: John Darrington <john@darrington.wattle.id.au>
To: Ludovic Court??s <ludo@gnu.org>
Cc: guix-devel@gnu.org, Georgi Kirilov <kirilov.georgi.s@gmail.com>
Subject: Re: A postinst equivalent in Guix?
Date: Wed, 25 Jan 2017 14:42:41 +0100	[thread overview]
Message-ID: <20170125134241.GA25335@jocasta.intra> (raw)
In-Reply-To: <87lgtzxov3.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2450 bytes --]

On Wed, Jan 25, 2017 at 02:15:12PM +0100, Ludovic Court??s wrote:
     Christopher Allan Webber <cwebber@dustycloud.org> skribis:
     
     > Ludovic Court??s writes:
     >
     >> Georgi Kirilov <kirilov.georgi.s@gmail.com> 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 are
     >>>>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 would
     >> 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.

J'
     

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


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  reply	other threads:[~2017-01-25 13:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-19 18:30 A postinst equivalent in Guix? Georgi Kirilov
2017-01-20  6:23 ` John Darrington
2017-01-20 14:09 ` Ludovic Courtès
2017-01-21 14:39   ` Georgi Kirilov
2017-01-21 15:34     ` Ludovic Courtès
2017-01-21 16:36       ` Georgi Kirilov
2017-01-23  9:34         ` Ludovic Courtès
2017-01-25  0:26           ` Christopher Allan Webber
2017-01-25 13:15             ` Ludovic Courtès
2017-01-25 13:42               ` John Darrington [this message]
2017-01-25 16:19                 ` Christopher Allan Webber
2017-01-25 14:54           ` Georgi Kirilov

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170125134241.GA25335@jocasta.intra \
    --to=john@darrington.wattle.id.au \
    --cc=guix-devel@gnu.org \
    --cc=kirilov.georgi.s@gmail.com \
    --cc=ludo@gnu.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).