From: Paul Moore <paul@paul-moore.com>
To: Richard Haines <richard_c_haines@btinternet.com>
Cc: "selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>
Subject: Re: RFC - Display context information using iproute2 ss utility
Date: Tue, 11 Feb 2014 18:17:42 -0500 [thread overview]
Message-ID: <7783228.bfKoxQqi1y@sifl> (raw)
In-Reply-To: <1391963266.11620.YahooMailNeo@web87906.mail.ir2.yahoo.com>
On Sunday, February 09, 2014 04:27:46 PM Richard Haines wrote:
> Thanks for clarifying the socket fd context.
>
> For the iproute ss utility I was thinking of altering the man page to
> reflect your comments (added below) and some testing I've done using
> policy role/type and range transition statements.
>
> Overall do you think it is worth adding the socket contexts to the ss
> utility.
I'm pretty conflicted on this ... at best I wonder how useful the information
will be to users/developers and at worst I fear it could end up being
misleading.
> -Z, --context
> Show SELinux security contexts. The context of the process using
> the socket and the sockets context will be displayed. The socket
> context is taken from the file descriptors inode and is not the
I might say that the socket context is taken from the "associated inode" and
leave the file descriptor out of it, but that is just me. After all, there is
a reason I'm not a writer :)
> actual socket context held by the kernel. Sockets are typically
> labeled with the context of the creating process, however the
> context shown will reflect any policy role, type and/or range
> transition rules applied, and is therefore a useful reference.
>
> For netlink(7) sockets the initiating process context is displayed
> as follows:
>
> 1. If valid pid show the process context.
>
> 2. If destination is kernel (pid = 0) show kernel initial context.
>
> 3. If a unique identifier has been allocated by the kernel or
> netlink user, show context as "not available".
> This will generally indicate that a process has more
> than one netlink socket active.
>
> Richard
--
paul moore
www.paul-moore.com
next prev parent reply other threads:[~2014-02-11 23:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 16:22 RFC - Display context information using iproute2 ss utility Richard Haines
2014-02-07 17:03 ` Ole Kliemann
2014-02-07 21:50 ` Paul Moore
2014-02-09 16:27 ` Richard Haines
2014-02-11 23:17 ` Paul Moore [this message]
2014-02-17 20:10 ` Ole Kliemann
2014-02-17 21:38 ` Paul Moore
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=7783228.bfKoxQqi1y@sifl \
--to=paul@paul-moore.com \
--cc=richard_c_haines@btinternet.com \
--cc=selinux@tycho.nsa.gov \
/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.