From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Alex Layton <alex@layton.in>,
Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Cc: linux-can <linux-can@vger.kernel.org>
Subject: Re: can-j1939 API
Date: Thu, 29 Oct 2015 20:33:38 +0100 [thread overview]
Message-ID: <56327492.9030405@hartkopp.net> (raw)
In-Reply-To: <20151023111430.GB22388@airbook.eia.lan>
Hi Kurt,
On 10/23/2015 01:14 PM, Kurt Van Dijck wrote:
>>>> ...
>>>> Can you not have you module only listen on
>>>> interfaces where J1939 sockets have been opened?
>>>
>>> That sounds like a fine idea!
>>> It would behave slightly different during booting, but given the critics
>>> on the switch, this will probably the best thing to do.
>>> This implies that a non-root user decides to turn on can-j1939
>>> processing on an interface, which I found a hard nut to crack.
>>
>> I had not really considered the user permissions ramifications of
>> things. You raise a good point here.
>>
>> Doesn't SocketCAN automatically load the protocol module when you try
>> to open a socket? That means non-root users can already decide to turn
>> on processing on an interface for ISOTP etc. I am good with non-root
>> users being able to enable J1939 like this, especially if the
>> precedent is already set by other protocols.
>
> Yep, I can follow that argument.
> When I get to it, I'll change that.
> It also implies I can drop iproute2-j1939 branches completely.
>
Just to be sure I understood it correctly:
No iproute2-j1939 branch -> no address support for j1939 in iproute
-> no address support in af_can.c ?? \o/
So you would automatically take care of SA/Name when a j1939 socket is created
with the according address information (== per-socket), right?
Regards,
Oliver
next prev parent reply other threads:[~2015-10-29 19:33 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <linux-can/can-utils/pull/7@github.com>
2015-09-28 6:53 ` [can-utils] J1939 v6 (#7) Marc Kleine-Budde
2015-09-29 12:15 ` Kurt Van Dijck
2015-09-30 15:26 ` Aaron Clarke
2015-09-30 23:38 ` Kurt Van Dijck
[not found] ` <linux-can/can-utils/pull/7/c144149208@github.com>
2015-09-29 18:46 ` Marc Kleine-Budde
2015-09-29 19:49 ` can-j1939 API Kurt Van Dijck
2015-09-29 20:10 ` Austin Schuh
2015-10-15 22:04 ` Alex Layton
2015-10-16 19:36 ` Patrick Menschel
2015-10-18 2:42 ` Kurt Van Dijck
2015-10-19 3:41 ` Patrick Menschel
2015-10-19 6:07 ` Oliver Hartkopp
2015-10-19 9:52 ` Kurt Van Dijck
2015-10-19 16:53 ` Alex Layton
2015-10-19 20:57 ` Kurt Van Dijck
2015-10-19 21:31 ` Kurt Van Dijck
2015-10-22 16:39 ` Alex Layton
2015-10-18 2:32 ` Kurt Van Dijck
2015-10-19 16:53 ` Alex Layton
2015-10-19 20:44 ` Kurt Van Dijck
2015-10-22 16:39 ` Alex Layton
2015-10-23 11:14 ` Kurt Van Dijck
2015-10-29 19:33 ` Oliver Hartkopp [this message]
2015-10-29 23:38 ` Kurt Van Dijck
2015-11-02 12:14 ` Oliver Hartkopp
2015-11-02 12:29 ` Kurt Van Dijck
2015-11-02 13:18 ` Oliver Hartkopp
2015-11-11 19:48 ` Kurt Van Dijck
2015-11-10 21:58 ` Yang
2015-11-11 18:49 ` Kurt Van Dijck
2015-11-17 6:01 ` Yang Wang
2015-11-17 8:43 ` Kurt Van Dijck
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=56327492.9030405@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=alex@layton.in \
--cc=dev.kurt@vandijck-laurijssen.be \
--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 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 NNTP newsgroup(s).