From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: How to grant a CAP_NET_RAW capability to user?
Date: Tue, 10 Dec 2013 19:39:23 +0000 (UTC) [thread overview]
Message-ID: <l87qlb$5oq$1@ger.gmane.org> (raw)
In-Reply-To: l87lqe$7p1$1@ger.gmane.org
On 2013-12-10, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> How do you grant a capability (e.g. CAP_NET_RAW) to a user?
After more googling, I found this page which describes exactly what
I'm trying to do:
https://github.com/constanze/GSoC2010_Gentoo_Capabilities/wiki/pam_cap-on-gentoo
Except it doesn't work: after modifying /etc/pam.d/system-auth and
/etc/security/capability.conf as indicated and logging out/in, pscap
shows no cap_net_raw for the user in question, and trying to run
programs that use RAW sockets fail:
socket: Operation not permitted
Error opening socket: Operation not permitted
I'm apparently missing something...
--
Grant Edwards grant.b.edwards Yow! Sign my PETITION.
at
gmail.com
prev parent reply other threads:[~2013-12-10 19:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='l87qlb$5oq$1@ger.gmane.org' \
--to=grant.b.edwards@gmail.com \
--cc=gentoo-user@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox