tsoljdslabel-02-newgdmfailsafe.diff revision 18106
18106N/Adiff -urN tsoljdalabel.orig/Makefile.am tsoljdalabel.new/Makefile.am
18106N/A--- tsoljdalabel.orig/Makefile.am 2010-01-15 10:55:02.733401167 +0000
18106N/A+++ tsoljdalabel.new/Makefile.am 2010-01-15 10:55:47.256424282 +0000
18106N/A@@ -3,7 +3,7 @@
18106N/A AUTOMAKE_OPTIONS = dist-bzip2
18106N/A
18106N/A desktopdir = $(datadir)/xsessions/multilabel
18106N/A-desktop_in_files = tgnome.desktop.in
18106N/A+desktop_in_files = tgnome.desktop.in txfailsafe.desktop.in
18106N/A desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
18106N/A @INTLTOOL_DESKTOP_RULE@
18106N/A
18106N/Adiff -urN tsoljdalabel.orig/src/Makefile.am tsoljdalabel.new/src/Makefile.am
18106N/A--- tsoljdalabel.orig/src/Makefile.am 2010-01-15 10:55:02.730424069 +0000
18106N/A+++ tsoljdalabel.new/src/Makefile.am 2010-01-15 10:56:02.624870047 +0000
18106N/A@@ -6,6 +6,7 @@
18106N/A $(TSOLJDSLABEL_CFLAGS)
18106N/A
18106N/A bin_PROGRAMS = tsoljdslabel tsoljdslabel-ui
18106N/A+bin_SCRIPTS = txfailsafe
18106N/A
18106N/A tsoljdslabel_SOURCES = suidwrapper.c
18106N/A
18106N/Adiff -urN tsoljdalabel.orig/src/txfailsafe tsoljdalabel.new/src/txfailsafe
18106N/A--- tsoljdalabel.orig/src/txfailsafe 1970-01-01 01:00:00.000000000 +0100
18106N/A+++ tsoljdalabel.new/src/txfailsafe 2010-01-15 10:56:18.561200186 +0000
18106N/A@@ -0,0 +1,22 @@
18106N/A+#!/usr/bin/bash
18106N/A+
18106N/A+rootrole=$(roles | grep -c root)
18106N/A+if [[ $rootrole == 1 ]] ; then
18106N/A+ echo "This is the failsafe xterm session. You must provide the root"
18106N/A+ echo "password to continue. If you cannot log in any other way please"
18106N/A+ echo "contact your system administrator."
18106N/A+ echo ""
18106N/A+ echo "Please enter the root password"
18106N/A+ su
18106N/A+ while [[ $? == 1 ]] ; do
18106N/A+ su
18106N/A+ done
18106N/A+else
18106N/A+ echo "The failsafe session is restricted to users who have been"
18106N/A+ echo "assigned the root role. If you cannot log in any other way"
18106N/A+ echo "please contact your system administrator."
18106N/A+ echo ""
18106N/A+ echo "Press the return key to return to the login screen"
18106N/A+ read line
18106N/A+fi
18106N/A+
18106N/Adiff -urN tsoljdalabel.orig/txfailsafe.desktop.in tsoljdalabel.new/txfailsafe.desktop.in
18106N/A--- tsoljdalabel.orig/txfailsafe.desktop.in 1970-01-01 01:00:00.000000000 +0100
18106N/A+++ tsoljdalabel.new/txfailsafe.desktop.in 2010-01-15 10:55:38.624342584 +0000
18106N/A@@ -0,0 +1,9 @@
18106N/A+[Desktop Entry]
18106N/A+Encoding=UTF-8
18106N/A+Name=Solaris Trusted Extension Failsafe
18106N/A+Comment=This session logs you into a Trusted Extensions failsafe xterm
18106N/A+Exec=/usr/X11/bin/xterm -e /usr/bin/txfailsafe
18106N/A+# no icon yet, only the top three are currently used
18106N/A+Icon=
18106N/A+Type=Application
18106N/A+X-GDM-BypassXsession=true