Bug 787688 - pstree does not handle correctly /proc/ when it's mounted with hidepid=1/2 option
Summary: pstree does not handle correctly /proc/ when it's mounted with hidepid=1/2 op...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: psmisc
Version: 5.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jaromír Cápík
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-06 14:16 UTC by Jerome Marchand
Modified: 2016-10-31 15:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 787686
Environment:
Last Closed: 2014-06-02 13:20:35 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jerome Marchand 2012-02-06 14:16:51 UTC
+++ This bug was initially created as a clone of Bug #787686 +++

Description of problem:
I'm about to post a patch for the kernel that add hidepid option to procfs. That option restricts access to
/proc/ for security reasons. The comment of upstream commit indicates that when access to /proc/ is restricted pstree shows the subtree that contains pstree process. However, on RHEL6, pstree shows nothing.

Version-Release number of selected component (if applicable):


How reproducible:
Allways

Steps to Reproduce:
1. Install a kernel with hidpid option. You can found one at
https://brewweb.devel.redhat.com/taskinfo?taskID=4002146
2. remount /proc with hidepid=1 or hidepid=2 enable
mount -o remount,hidepid=1 /proc/
3. run pstree
  
Actual results:
pstree does not display anything

Expected results:
pstree displays a subtree of processes which it has access to in /proc/<pid>/

Additional info:

Comment 1 Jerome Marchand 2012-02-06 14:18:54 UTC
(In reply to comment #0)
> +++ This bug was initially created as a clone of Bug #787686 +++
> 
> Description of problem:
> I'm about to post a patch for the kernel that add hidepid option to procfs.
> That option restricts access to
> /proc/ for security reasons. The comment of upstream commit indicates that when
> access to /proc/ is restricted pstree shows the subtree that contains pstree
> process. However, on RHEL6, pstree shows nothing.

s/RHEL6/RHEL5/

> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> Allways
> 
> Steps to Reproduce:
> 1. Install a kernel with hidpid option. You can found one at
> https://brewweb.devel.redhat.com/taskinfo?taskID=4002146

RHEL5 kernel can be found (not for long though) at:
https://brewweb.devel.redhat.com/taskinfo?taskID=4002046

> 2. remount /proc with hidepid=1 or hidepid=2 enable
> mount -o remount,hidepid=1 /proc/
> 3. run pstree
> 
> Actual results:
> pstree does not display anything
> 
> Expected results:
> pstree displays a subtree of processes which it has access to in /proc/<pid>/
> 
> Additional info:

Comment 2 RHEL Program Management 2014-03-07 13:46:05 UTC
This bug/component is not included in scope for RHEL-5.11.0 which is the last RHEL5 minor release. This Bugzilla will soon be CLOSED as WONTFIX (at the end of RHEL5.11 development phase (Apr 22, 2014)). Please contact your account manager or support representative in case you need to escalate this bug.

Comment 3 RHEL Program Management 2014-06-02 13:20:35 UTC
Thank you for submitting this request for inclusion in Red Hat Enterprise Linux 5. We've carefully evaluated the request, but are unable to include it in RHEL5 stream. If the issue is critical for your business, please provide additional business justification through the appropriate support channels (https://access.redhat.com/site/support).

Comment 4 Jerome Marchand 2014-10-06 13:25:43 UTC
No need to escalate.


Note You need to log in before you can comment on or make changes to this bug.