From: Martin Christian <martin.christian@secunet.com>
To: Rongqing Li <rongqing.li@windriver.com>
Cc: "selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>,
Stephen Smalley <sds@tycho.nsa.gov>
Subject: Re: "netstat -Z" reimplementation
Date: Wed, 27 Jul 2011 12:51:33 +0200 [thread overview]
Message-ID: <4E2FEDB5.9030902@secunet.com> (raw)
In-Reply-To: <4E2FDA3A.5040408@windriver.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Rongqing,
we would appreciate such an extension to netstat. We shortly had a
problem where it had helped if we could have see the labels of unix
domain sockets.
I'll try to help as much as possible (considering our project constraints).
Regards,
Martin.
Am 27.07.2011 11:28, schrieb Rongqing Li:
> SELinux folks, Stephen:
>
> I have some thoughts about reimplementation of 'netstat -Z', but I do
> not know if it is valuable, or if there are other risks. Could you
> evaluate my implementation, or give me your valuable advice?
>
> 1. From kernel, print the socket labels to tcp, udp, raw, unix
> files under /proc/net/.
>
> Now the /proc/net/tcp /proc/net/udp ... include many socket's
> information, like local address, remote address, inode, I think we can
> put the socket's security context to these files.
>
> To avoid to expose these information to non-privileged users, security
> checking should be done when expose the socket security context to procfs.
>
> 2. reimplementation the "netstat -Z", "netstat -Z" will first parse the
> security context from procfs's tcp, udp, raw files, and get the security
> context, if this step fails, "netstat -Z" will try as legacy method.
>
>
> If this implementation could be accepted by mainstream, netstat could
> print the correct socket label even if the type_transition has been
> happen on socket, or application changes socket labels by setting
> /proc/self/attr/sockcreate.
>
>
> Do you think it is valuable?
>
> Thanks
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJOL+2uAAoJEGpTkDITRjmoT3EH/j6Egi1tg9FUqa3nELZKepQY
lIOvvlHMJyboNlaisHkLS+MeMgO32mKfwiO2Vq4MNNFFHgEHt1J2BoIaNUU/D07K
KVNvfEVcD3jV/B2vpqM6ugUjrzmxmueDhdYvnG2l4nTPVxnN+irZ60ECcpgW7b2h
YZ5HKRAQ4MJkkCZacX03g3YX5J7inI3GU6eXUsim1/g54vdyCTRHn6M3AIizYozt
+7Ey60CdgPBKHr8MnwZVgkC21zkZS0E/8ZOYFxYPKATBbdlINxOWG2i4mUTp9eJE
svK/IMqJ4DXEg6RfGNwEB/KEms0W5ExOW/0M2TqoaukJBlLjZ20g4tQWZSVMVkg=
=zm+N
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2011-07-27 10:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-27 9:28 "netstat -Z" reimplementation Rongqing Li
2011-07-27 10:51 ` Martin Christian [this message]
2011-07-27 12:09 ` Stephen Smalley
2011-07-27 12:19 ` Daniel J Walsh
2011-07-27 13:37 ` Eric Paris
2011-07-27 13:40 ` Stephen Smalley
2011-07-28 3:00 ` Rongqing Li
2011-07-28 2:58 ` Rongqing Li
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=4E2FEDB5.9030902@secunet.com \
--to=martin.christian@secunet.com \
--cc=rongqing.li@windriver.com \
--cc=sds@tycho.nsa.gov \
--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.