all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Support for setuid binaries
@ 2014-04-30 21:20 Ludovic Courtès
  2014-04-30 22:26 ` David Thompson
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2014-04-30 21:20 UTC (permalink / raw)
  To: guix-devel

Hello,

Commit 09e028f adds support for setuid binaries.  Since the store cannot
contain setuid binaries, we use the same technique as NixOS: setuid
binaries are created when booting (or when switching configurations.)

That is, for each setuid program, a hard link or a copy of the
executable is created under /run/setuid-programs and make setuid-root.

You can test it by running:

  ./pre-inst-env guix system vm build-aux/hydra/demo-os.scm

and running for instance ‘ping’ as guest from there.

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Support for setuid binaries
  2014-04-30 21:20 Support for setuid binaries Ludovic Courtès
@ 2014-04-30 22:26 ` David Thompson
  2014-05-01 10:45   ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: David Thompson @ 2014-04-30 22:26 UTC (permalink / raw)
  To: Ludovic Courtès, guix-devel

Ludovic Courtès <ludo@gnu.org> writes:

> Hello,
>
> Commit 09e028f adds support for setuid binaries.  Since the store cannot
> contain setuid binaries, we use the same technique as NixOS: setuid
> binaries are created when booting (or when switching configurations.)
>
> That is, for each setuid program, a hard link or a copy of the
> executable is created under /run/setuid-programs and make setuid-root.
>
> You can test it by running:
>
>   ./pre-inst-env guix system vm build-aux/hydra/demo-os.scm
>
> and running for instance ‘ping’ as guest from there.
>
> Ludo’.

That's great news!  I've been missing sudo lately.

- Dave

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Support for setuid binaries
  2014-04-30 22:26 ` David Thompson
@ 2014-05-01 10:45   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2014-05-01 10:45 UTC (permalink / raw)
  To: David Thompson; +Cc: guix-devel

David Thompson <dthompson2@worcester.edu> skribis:

> That's great news!  I've been missing sudo lately.

But note that this won’t help when using Guix on another distro.

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-01 10:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-30 21:20 Support for setuid binaries Ludovic Courtès
2014-04-30 22:26 ` David Thompson
2014-05-01 10:45   ` Ludovic Courtès

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.