All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vasiliy Kulikov <segoon@openwall.com>
To: kernel-hardening@lists.openwall.com
Subject: [kernel-hardening] Re: proc info restrictions problem
Date: Sat, 18 Jun 2011 22:28:12 +0400	[thread overview]
Message-ID: <20110618182812.GA16457@albatros> (raw)
In-Reply-To: <20110618104207.GA13752@albatros>

Solar,

On Sat, Jun 18, 2011 at 14:42 +0400, Vasiliy Kulikov wrote:
> I feel doubt whether ptrace_may_access() may be changed to something
> more simple.  Both -ow and -grsecurity use changed posix permissions and
> gid on procfs files, so maybe just match subject's euid vs. object's uid?

Another choise - remove hidepid=2 at all.  As proc connector uses struct
proc_event as an information send to listeners, hidepid=1 is not related
to proc connector:

http://lxr.free-electrons.com/source/include/linux/cn_proc.h?a=avr32#L45

It means that with hidepid=1 only procfs and taskstats should be
restricted.  Taskstats uses direct "unicast" information sending, so
ptrace_task_may_access_current() and ptrace_may_access() should work
(with a patch I've recently sent to lsm list as RFC).


It is sad that hidepid=2 is losen and processes may spy on other users'
processes, but I don't see any technical solution for hidepid=2 and
cn_proc problem.


Thanks,

-- 
Vasiliy Kulikov
http://www.openwall.com - bringing security into open computing environments

  reply	other threads:[~2011-06-18 18:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-18 10:42 [kernel-hardening] proc info restrictions problem Vasiliy Kulikov
2011-06-18 18:28 ` Vasiliy Kulikov [this message]
2011-06-19 14:18   ` [kernel-hardening] " Vasiliy Kulikov

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=20110618182812.GA16457@albatros \
    --to=segoon@openwall.com \
    --cc=kernel-hardening@lists.openwall.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 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.