unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55683: Support binaries that need "setcap" similar to "setuid-programs"
@ 2022-05-27 19:51 Vagrant Cascadian
  2022-05-27 20:07 ` Vagrant Cascadian
  0 siblings, 1 reply; 3+ messages in thread
From: Vagrant Cascadian @ 2022-05-27 19:51 UTC (permalink / raw)
  To: 55683

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

I've been working on a package called lcsync:

  https://issues.guix.gnu.org/55682

But lcsync needs CAP_NET_RAW... Normally, this is accomplished by
running:

  setcap cap_net_raw=eip /path/to/bin/lcsync

You could add lcsync to setuid-programs, but this would be a terrible
idea, as it's a file syncing tool and you would have root access to
writing any file in the filesystem...

Upstream lcsync is considering how to rewrite it to drop privledges so
that it would not be *terrible* to run setuid root, but ... ideally it
could just use setcap to provide the very limited root privledges that
it needs.

It seems like something very similar to setuid-programs could work for
programs that need particular capabilities... e.g. copy a binary from
the store, set the appropriate capabilities with "setcap", add this
special directory to PATH.

But maybe there's a better way to do this already? :)


live well,
  vagrant

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

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

end of thread, other threads:[~2023-02-13 19:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-27 19:51 bug#55683: Support binaries that need "setcap" similar to "setuid-programs" Vagrant Cascadian
2022-05-27 20:07 ` Vagrant Cascadian
2023-02-13 19:52   ` Vagrant Cascadian

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).