netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Lutomirski <luto@amacapital.net>
To: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Piotr Wilczek <p.wilczek@samsung.com>,
	David Miller <davem@davemloft.net>,
	Network Development <netdev@vger.kernel.org>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	juho80.son@samsung.com, jkaluza@redhat.com
Subject: Re: [PATCH net-next V2 0/2] send process status in SCM_PROCINFO
Date: Fri, 4 Jul 2014 12:53:19 -0700	[thread overview]
Message-ID: <CALCETrUTR=HCWBHPmH3hG8HrfV_Na1_YBYu9uGdfaKpifB6eDA@mail.gmail.com> (raw)
In-Reply-To: <1546483.blK5usQ45h@amdc1032>

On Fri, Jul 4, 2014 at 10:58 AM, Bartlomiej Zolnierkiewicz
<b.zolnierkie@samsung.com> wrote:
> On Friday, July 04, 2014 10:07:24 AM Andy Lutomirski wrote:
>> > Then why this should be a problem?  All information obtained through
>> > SCM_PROCINFO comes from the kernel not the application itself.
>>
>> So what?  The information is correct in the sense of correctly
>> identifying who called write(2).  The problem is that any code (user
>> or kernel) that thinks it cares who called write(2) is *wrong*.  Full
>> stop.  That code cares about who intended the message to be send,
>> which may or not be the same entity that called write(2).
>
> Do you mean that the process doing write(2) can be different from the one
> intending it?  How is that a problem in our case?  We only care about info
> about entity that actually called write(2).  We completely don't care about
> the intent in the kernel and any code doing any authorization based on
> the obtained information in user-space would be seriously wrong because
> the information is stale once it leaves kernel and has only historic value.
> Am I missing something?

What exactly is your case?  If it's purely for debugging, fine.  But
if it's a log and anyone ever wants to think of it as a reliable audit
log, this isn't so good.  For example, if I see a log message from
_UID=0 saying something important, I am likely to believe that
something privileged actually generated that text.  This *cannot* be
guaranteed by SCM_CREDENTIALS on a datagram socket.

--Andy

  reply	other threads:[~2014-07-04 19:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26 12:55 [PATCH net-next V2 0/2] send process status in SCM_PROCINFO Piotr Wilczek
2014-06-26 12:55 ` [PATCH net-next V2 1/2] lib:proc_info:add library to get process information Piotr Wilczek
2014-06-26 12:55 ` [PATCH net-next V2 2/2] Send process status in SCM_PROCINFO Piotr Wilczek
2014-07-01 23:31 ` [PATCH net-next V2 0/2] send " David Miller
2014-07-01 23:52   ` Andy Lutomirski
2014-07-03  6:00     ` Piotr Wilczek
2014-07-03 16:14       ` Andy Lutomirski
2014-07-04 13:26         ` Bartlomiej Zolnierkiewicz
2014-07-04 15:15           ` Andy Lutomirski
2014-07-04 16:55             ` Bartlomiej Zolnierkiewicz
2014-07-04 17:07               ` Andy Lutomirski
2014-07-04 17:58                 ` Bartlomiej Zolnierkiewicz
2014-07-04 19:53                   ` Andy Lutomirski [this message]
2014-07-14 16:43                     ` Bartlomiej Zolnierkiewicz
2014-07-14 17:05                       ` Andy Lutomirski
2014-07-21 12:59     ` Piotr Wilczek
2014-07-22 12:24     ` Piotr Wilczek
2014-07-23 20:49       ` Andy Lutomirski

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='CALCETrUTR=HCWBHPmH3hG8HrfV_Na1_YBYu9uGdfaKpifB6eDA@mail.gmail.com' \
    --to=luto@amacapital.net \
    --cc=b.zolnierkie@samsung.com \
    --cc=davem@davemloft.net \
    --cc=jkaluza@redhat.com \
    --cc=juho80.son@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=netdev@vger.kernel.org \
    --cc=p.wilczek@samsung.com \
    /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).