Bug 374431

Summary: selinux prevents terminal output from lvm commands when using rlogin
Product: Red Hat Enterprise Linux 5 Reporter: Olle Liljenzin <olle>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 5.0   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0465 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 16:06:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
selinux messages none

Description Olle Liljenzin 2007-11-10 09:39:21 UTC
Description of problem:
No output is printed to the terminal from lvm commands (lvdisplay, vgdisplay etc.)

Version-Release number of selected component (if applicable):
selinux-policy-2.4.6-30.el5

How reproducible:
always

Steps to Reproduce:
1. enable rlogin
2. run 'rlogin localhost'
3. run '/usr/sbin/lvm help'
  
Actual results:
no output

Expected results:
help text should be displayed

Comment 1 Olle Liljenzin 2007-11-10 09:39:21 UTC
Created attachment 253861 [details]
selinux messages

Comment 2 Daniel Walsh 2007-11-10 12:17:53 UTC
You can probably get around this by executing 

/usr/sbin/lvm help | cat


Comment 3 Olle Liljenzin 2007-11-10 13:11:31 UTC
Yes, I get the output if I pipe stderr.

But 'lvm help' was just a simplified example. Some commands are interactive,
e.g. lvremove, and I also suspect stdin being detached by selinux.

Comment 4 Daniel Walsh 2007-11-13 20:37:57 UTC
Please update to the U1 policy.  Preview is currently available on 

http://people.redhat.com/dwalsh/RHEL5


Comment 5 Olle Liljenzin 2007-11-14 08:29:55 UTC
The link above is broken...

Comment 6 Daniel Walsh 2007-11-14 15:11:27 UTC
http://people.redhat.com/dwalsh/SELinux/RHEL5

Sorry

Comment 7 Olle Liljenzin 2007-11-15 10:32:28 UTC
The packages are the same as we get from rhn?

Unfortunately they don't fix this bug.


Comment 8 Milan Broz 2008-01-04 12:00:01 UTC
*** Bug 368041 has been marked as a duplicate of this bug. ***

Comment 14 errata-xmlrpc 2008-05-21 16:06:04 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0465.html