Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 704198

Summary: s390x: systemd should open /dev/console on terminal
Product: [Fedora] Fedora Reporter: Jan Stodola <jstodola>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 15CC: dan, johannbg, lpoetter, metherid, mschmidt, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-12 14:02:56 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:
Bug Depends On:    
Bug Blocks: 467765    

Description Jan Stodola 2011-05-12 12:16:50 UTC
Description of problem:
After installation of Fedora 15 for s390x and rebooting into installed system, root is not able to login via x3270 terminal emulator:

...
Fedora release 15 (Lovelock)  
Kernel 2.6.38.3-18.fc15.s390x on an s390x (ttyS0)
  
rtt7.xxx login: root
root 
Password: xxx
 
Login incorrect 


This is caused by starting "ttyS0" on terminal instead of "console". With RHEL6 or Fedora 14, "console" is opened on terminal:


Fedora release 14 (Laughlin)  
Kernel 2.6.35.6-45.fc14.s390x on an s390x (console)  
  
rtt6 login: root
root  
Password: xxx
  
Last login: Thu May 12 07:37:29 from vpn1-xxx
Ýroot@rtt6 ~¨# tty
tty  
/dev/console  


To be consistent with previous releases, systemd should open /dev/console on terminal, since "console" is allowed in /etc/securetty, "ttyS0" is not allowed:

[root@rtt7 ~]# grep ttyS0 /etc/securetty 
[root@rtt7 ~]# grep console /etc/securetty 
console


Version-Release number of selected component (if applicable):
systemd-24-1.fc15.s390x

How reproducible:
always

Steps to Reproduce:
1. install F15 for s390x
2. reboot
3. try to login as root via terminal
  
Actual results:
Login fails

Expected results:
root can login via terminal

Comment 2 Dan Horák 2011-05-12 14:02:56 UTC
After a discussion with Lennart it is an issue in pam_securetty where it must check also for devices from /sys/class/tty/console/active in addition to the console= kernel parameter. New bug will be filed.