From: "Hodaszi, Robert" <robert.hodaszi@digi.com>
To: "linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: can-bus user permissions
Date: Thu, 26 Jun 2014 10:19:28 +0000 [thread overview]
Message-ID: <1403777965.9016.9.camel@A1-Robi> (raw)
Hi,
A while ago, only root was able to access the can interfaces, except if
the CONFIG_CAN_RAW_USER or CONFIG_CAN_BCM_USER was defined.
I would need a similar behavior: only some selected users or groups
should access the can interfaces, and nobody else. Is it possible to do
that somehow with the current kernel? Or should I modify it?
(E.g. it would be perfect, if I could use it like in case of IP sockets:
iptables -A OUTPUT -o eth0 -m owner --uid-owner 0 -j ACCEPT
and DROP others, or something like this.)
Thanks!
--
Robert Hodaszi
next reply other threads:[~2014-06-26 10:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-26 10:19 Hodaszi, Robert [this message]
2014-06-26 17:55 ` can-bus user permissions Oliver Hartkopp
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=1403777965.9016.9.camel@A1-Robi \
--to=robert.hodaszi@digi.com \
--cc=linux-can@vger.kernel.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 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.