LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-17-2008, 02:13 AM   #1
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
Question Harden RHEL - Only show processes owned by the user


I don't want that the regular user may explore what processes are running on the system by other users/root.

How may RHEL 4/5 be restricted in that way?

One possibility would be XEN and a seperate virtual machine per user. But I want all users to share the same machine.
 
Old 07-17-2008, 07:29 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by brianmcgee View Post
I don't want that the regular user may explore what processes are running on the system by other users/root.
Any particularly compelling reason why not? (Just curious if this is an "official" requirement of sorts or just a misunderstanding of discretionary access rights.)


Quote:
Originally Posted by brianmcgee View Post
How may RHEL 4/5 be restricted in that way? One possibility would be XEN and a seperate virtual machine per user. But I want all users to share the same machine.
GRsecurity has a sysctl to limit scope of processes to their owner, RSBAC apparently has something similar called "CAP process hiding" and SELinux I don't know (and I haven't yet tried having both SELinux and GRSecurity in one kernel). These are invasive methods since they require a kernel patch but acceptable and mainstream solutions. I don't know any solid userland implementations (think syscall interception with an LD_PRELOAD) and while I've seen people in other threads mess with like replacing /bin/ps with a script that basically does something like "/some/path/ps.old U $UID", IMHO those kludges are easy to circumvent (introduce something like Busybox or your own procps utils, walk /proc, locate old binary or use other utilities).

Last edited by unSpawn; 07-17-2008 at 07:31 AM.
 
Old 07-18-2008, 01:53 AM   #3
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Original Poster
Rep: Reputation: 40
For example if unpriviledged users are logged in to the system, they are able to find out, what ssh connections other users run or there may be the possibility that login credentials are used in plaintext by unexperienced users and that would be visible with the ps command.

Also the user should not know what daemons are running on the system. So that it is more difficult to find exploits for the system.
 
Old 07-18-2008, 07:16 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Apart from the credentials stuff (IMHO education first of all) it all points towards system hardening. Not being able to see other processes can be a part of that. Unfortunately the most invasive things (like drafting a policy, kernel and package choice) are best dealt with before or during the installation. Did you by any chance read RHEL admininstration docs and basic hardening tutorials already?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict ps to show only user own processes on Debian Etch. tmee Linux - Server 5 01-25-2011 08:43 PM
show processes than don't belong to user root jianelisj Linux - Newbie 2 03-06-2008 11:31 PM
move stuff owned by one user by another user Geminias Linux - Newbie 4 07-12-2007 10:35 AM
Limitations of System Processes and Oracle Processes in RHEL AS3.0 sathyguy Linux - Enterprise 0 03-02-2007 11:52 PM
Make a file owned by root owned by a user sharpie Linux - Newbie 2 02-26-2004 01:26 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 01:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration