public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to grant a CAP_NET_RAW capability to user?
@ 2013-12-10 18:16 Grant Edwards
  2013-12-10 18:39 ` Canek Peláez Valdés
  2013-12-10 19:39 ` Grant Edwards
  0 siblings, 2 replies; 6+ messages in thread
From: Grant Edwards @ 2013-12-10 18:16 UTC (permalink / raw
  To: gentoo-user

How do you grant a capability (e.g. CAP_NET_RAW) to a user?

I've been googling and have found countless articles and blog posts
explaining what each capability is and how to grant capabilities to an
executable file.  While granting the capability to an executable does
work, that's not what I need to do for a couple different reasons.

I need to grant the capability to a user, not to the executable.

There were a couple vague references implying that you can configure
"login to grant the desired capabilities" when a user logs in, but
I've not found any documentation on how to do that.

I've tried editing /etc/security/capability.conf and adding the line

  cap_net_raw   <username>

But, that doesn't seem to have any effect (yes, I logged out and back
in again).

-- 
Grant Edwards               grant.b.edwards        Yow! Mary Tyler Moore's
                                  at               SEVENTH HUSBAND is wearing
                              gmail.com            my DACRON TANK TOP in a
                                                   cheap hotel in HONOLULU!



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

end of thread, other threads:[~2013-12-10 20:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-10 18:16 [gentoo-user] How to grant a CAP_NET_RAW capability to user? Grant Edwards
2013-12-10 18:39 ` Canek Peláez Valdés
2013-12-10 18:56   ` [gentoo-user] " Grant Edwards
2013-12-10 19:40     ` Canek Peláez Valdés
2013-12-10 20:07       ` Grant Edwards
2013-12-10 19:39 ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox