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

On Mon, Jan 23, 2017 at 10:34:55AM +0100, Ludovic Courtès wrote:
>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.

Yep, I think making it work in GuixSD is enough :)
Other distros have their own package.

I tried adding a gnu/services/games.scm and mimicking what the other 
services did, but I don't even know how to trigger the code.
I would appreciate any help.

On Wed, Jan 25, 2017 at 02:42:41PM +0100, John Darrington wrote:
>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.

Yes, some of these games maintain and query a system-wide top scores 
list so users can try to beat each other's top scores.

On Tue, Jan 24, 2017 at 06:26:28PM -0600, Christopher Allan Webber wrote:
>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.

This is exactly how this package does it - it installs initial, empty 
score files and chgrp's them to 'users'.

      parent reply	other threads:[~2017-01-25 14:54 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
2017-01-25 16:19                 ` Christopher Allan Webber
2017-01-25 14:54           ` Georgi Kirilov [this message]

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=20170125145335.e5hij7hcs3iau4tm@gmail.com \
    --to=kirilov.georgi.s@gmail.com \
    --cc=cwebber@dustycloud.org \
    --cc=guix-devel@gnu.org \
    --cc=john@darrington.wattle.id.au \
    --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).