From: Vasiliy Kulikov <segoon@openwall.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: linux-kernel@vger.kernel.org,
kernel-hardening@lists.openwall.com, akpm@linux-foundation.org,
gregkh@suse.de, davem@davemloft.net, arnd@arndb.de,
viro@zeniv.linux.org.uk, rientjes@google.com, wilsons@start.ca,
daniel.lezcano@free.fr, ebiederm@xmission.com, serge@hallyn.com
Subject: Re: [RFC 2/5 v4] procfs: add hidepid= and gid= mount options
Date: Thu, 16 Jun 2011 12:47:20 +0400 [thread overview]
Message-ID: <20110616084720.GA2897@albatros> (raw)
In-Reply-To: <4DF96953.8090002@jp.fujitsu.com>
Hi KOSAKI,
On Thu, Jun 16, 2011 at 11:24 +0900, KOSAKI Motohiro wrote:
> Maybe I missed patch [0/5] or I haven't got it. Anyway I haven't see it.
0/5: https://lkml.org/lkml/2011/6/15/172 As 0's description doesn't go
into "git log", I didn't put exhaustive explaination there.
Documentation: https://lkml.org/lkml/2011/6/15/176
> Can you please describe your use case? Why do we need two new hidepid mode?
It can be used everywhere where a confidence is an issue. The most
visible part is cmdline and comm hiding, which forbids learning what
binaries other users run. status, perhaps io, stat and sched may be
indirectly used for the same purpose. These and other files may be used
for gaining indirect infomation about what kinds (and/or what amount) of
computations were performed.
Changing all these files' permissions is arguable (it's not obvious what
files are sources of potential infoleaks and in what cases), it might
lead to compatibility issues.
> Moreover, if we use hidepid=[12], it may break some procps tools. What do
> you think about compatibility issue?
Good question :) In times of -ow patch there was a pstree patch to show
independent process trees:
http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/psmisc/psmisc-21.5-owl-restricted-proc.diff?rev=1.2;content-type=text%2Fplain
It is simple to port it to the latest version of pstree. Current
version of pstree prints only one tree:
?─┬─bonobo-activati───{bonobo-activat}
├─clock-applet
├─cpufreq-applet
├─dbus-daemon
├─dbus-launch
[...]
I didn't spot any visibility issues with other process related tools -
ps and similar just print accessible processes' information skipping
nonaccessible ones.
> And, why don't you use just pid namespace?
Pid namespaces are somewhat good, but it is already possible to use
different security domains (uid and gid) inside of pid_namespace without
any trust between them (OK, root is an exception :)). Hidepid enhances
already implemented separation. Sometimes pid namespace's separation
may be too strong (no process-related communications between processes
of different namespaces unless they are parent and child namespaces).
Besides, namespaces are very expensive resource in sense of memory.
Thanks,
--
Vasiliy Kulikov
http://www.openwall.com - bringing security into open computing environments
next prev parent reply other threads:[~2011-06-16 8:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 18:51 [RFC 2/5 v4] procfs: add hidepid= and gid= mount options Vasiliy Kulikov
2011-06-16 2:24 ` KOSAKI Motohiro
2011-06-16 8:47 ` Vasiliy Kulikov [this message]
[not found] <alpine.LRH.2.00.1106192154220.7503@taiga.selinuxproject.org>
2011-06-20 5:07 ` James Morris
2011-06-20 10:39 ` Vasiliy Kulikov
2011-06-20 10:43 ` James Morris
2011-06-20 11:23 ` KOSAKI Motohiro
2011-06-20 17:06 ` Vasiliy Kulikov
2011-06-20 19:41 ` Eric W. Biederman
2011-06-20 23:19 ` James Morris
2011-06-21 18:28 ` Vasiliy Kulikov
2011-06-20 13:58 ` Alexey Dobriyan
2011-06-20 13:31 ` Solar Designer
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=20110616084720.GA2897@albatros \
--to=segoon@openwall.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=daniel.lezcano@free.fr \
--cc=davem@davemloft.net \
--cc=ebiederm@xmission.com \
--cc=gregkh@suse.de \
--cc=kernel-hardening@lists.openwall.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rientjes@google.com \
--cc=serge@hallyn.com \
--cc=viro@zeniv.linux.org.uk \
--cc=wilsons@start.ca \
/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).