RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 844004 - Using zenity in GDM PreSession scripts no longer prompts user with dialog before login
Summary: Using zenity in GDM PreSession scripts no longer prompts user with dialog bef...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gdm
Version: 6.3
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: 6.4
Assignee: Ray Strode [halfline]
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-27 20:00 UTC by BJ Walker
Modified: 2018-12-02 19:05 UTC (History)
3 users (show)

Fixed In Version: gdm-2.30.4-40.el6
Doc Type: Bug Fix
Doc Text:
Cause: The PreSession shell script is run before login. Admins are supposed to be able to make the script fail to cancel login. GDM ignores failures, though. Consequence: Login proceeds even when the admin tries to abort it. Fix: GDM now blocks login until the PreSession script finishes, and fails the login process if the PreSession script fails. Result:
Clone Of:
Environment:
Last Closed: 2013-11-21 23:32:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1708 0 normal SHIPPED_LIVE gdm bug fix update 2013-11-21 00:39:27 UTC

Description BJ Walker 2012-07-27 20:00:26 UTC
Description of problem:
When using the following script:

/usr/bin/zenity --warning --title="CONSENT BANNER" --text "`cat /etc/issue`" --width=750
answer=$?
if [ "$answer" == "1" ] ; then
       exit 1
fi

in /etc/gdm/PreSession/Default, disagreeing with the dialog box no longer kicks user out to login screen.  In RHEL 5, this functionality allowed the admin to provide an EULA to the user, who had to agree with it to continue the login and would be logged out if they disagreed, in RHEL 6 the prompt may appear but does not kick the user out of disagreement.  We were able to work around this by putting in in the Xsession file however it appears the functionality in GDM may have changed.

Version-Release number of selected component (if applicable):
gdm-2.30.4-33.el6_2.x86_64 

How reproducible:
Every time.

Steps to Reproduce:
1. Place the above script in /etc/gdm/PreSession/Default in RHEL 5
2. Login as the user
3. Disagree with the EULA and get kicked out
4. Do the same in RHEL 6 and see the behavior is no longer honored
  
Actual results:
Customers allowed to get into the OS even after disagreement with EULA.

Expected results:
Customers kicked out to login screen when disagreeing with the EULA.

Additional info:

Comment 1 RHEL Program Management 2012-12-14 06:48:14 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Ray Strode [halfline] 2013-06-05 14:37:59 UTC
i believe we fixed this upstream already. devack+

Comment 12 errata-xmlrpc 2013-11-21 23:32:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1708.html


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