From: Pavel Machek <pavel@ucw.cz>
To: Daniel Reichelt <mail@itamservices.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Patch: Hide process info from other users/users not in my group
Date: Wed, 21 Nov 2007 18:03:38 +0000 [thread overview]
Message-ID: <20071121180338.GB3888@ucw.cz> (raw)
In-Reply-To: <4742B82C.3060001@itamservices.de>
Hi!
> this patch sets (if the corresponding kconfig option is active) the access
> modes of /proc/<pid>-dirs to 550 instead of 555 in order to provide some
> privacy to users. Tools like lsof and ps to spy out on other users become
> ineffective.
>
> Cheers,
> --
> Daniel Reichelt
>
> # diff -Naur linux-2.6.23.8/fs/Kconfig linux-2.6.23.8-dhr/fs/Kconfig
> --- linux-2.6.23.8/fs/Kconfig 2007-11-16 19:14:27.000000000 +0100
> +++ linux-2.6.23.8-dhr/fs/Kconfig 2007-11-20 11:33:18.000000000 +0100
> @@ -918,6 +918,17 @@
> help
> Exports the dump image of crashed kernel in ELF format.
>
> +config PROC_SECURED_PID_DIRS
> + bool "chmod /proc/<pid>-dirs to 550"
> + depends on PROC_FS
> + default n
> + help
> + chmod /proc/<pid>-dirs to 550 instead of 555 which provides a bit
> + moreprivacy to users on your system as only the user's and the user's
> + group's process details may be viewed. Other users' tasks running on
> + the system will be completely hidden from the means of utilities like
> + ps or lsof.
> +
This really needs to be runtime-configurable.
--
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2007-11-25 17:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-20 10:34 Daniel Reichelt
2007-11-20 17:53 ` Johannes Weiner
2007-11-20 19:42 ` Daniel Reichelt
2007-11-21 10:57 ` Daniel Reichelt
2007-11-21 18:03 ` Pavel Machek [this message]
2007-11-25 17:44 ` Daniel Reichelt
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=20071121180338.GB3888@ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=mail@itamservices.de \
/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
all inboxes | Powered by JetHome®