Update to 3.16.1

This commit is contained in:
Kalev Lember 2015-04-16 11:37:48 +02:00
parent 45a0c7de19
commit 62131b92b3
4 changed files with 7 additions and 86 deletions

1
.gitignore vendored
View File

@ -72,3 +72,4 @@ gdm-2.30.2.tar.bz2
/gdm-3.15.92.tar.xz /gdm-3.15.92.tar.xz
/gdm-3.16.0.tar.xz /gdm-3.16.0.tar.xz
/gdm-3.16.0.1.tar.xz /gdm-3.16.0.1.tar.xz
/gdm-3.16.1.tar.xz

View File

@ -1,81 +0,0 @@
From 798a1ad79bdb937c4b0c9008562cd543acaf3206 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Fri, 27 Mar 2015 10:10:54 -0400
Subject: [PATCH] gdm-x-session: set XORG_RUN_AS_USER_OK=1 environment variable
This lets the X server know that it can safely drop privileges.
https://bugzilla.gnome.org/show_bug.cgi?id=746891
---
daemon/gdm-x-session.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/daemon/gdm-x-session.c b/daemon/gdm-x-session.c
index dfd6016..3cc7d40 100644
--- a/daemon/gdm-x-session.c
+++ b/daemon/gdm-x-session.c
@@ -195,60 +195,61 @@ spawn_x_server (State *state,
{
GPtrArray *arguments = NULL;
GSubprocessLauncher *launcher = NULL;
GSubprocess *subprocess = NULL;
GInputStream *input_stream = NULL;
GDataInputStream *data_stream = NULL;
GError *error = NULL;
char *auth_file;
gboolean is_running = FALSE;
int ret;
int pipe_fds[2];
char *display_fd_string = NULL;
char *vt_string = NULL;
char *display_number;
gsize display_number_size;
auth_file = prepare_auth_file ();
g_debug ("Running X server");
ret = g_unix_open_pipe (pipe_fds, FD_CLOEXEC, &error);
if (!ret) {
g_debug ("could not open pipe: %s", error->message);
goto out;
}
arguments = g_ptr_array_new ();
launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDIN_INHERIT);
+ g_subprocess_launcher_setenv (launcher, "XORG_RUN_AS_USER_OK", "1", TRUE);
g_subprocess_launcher_take_fd (launcher, pipe_fds[1], DISPLAY_FILENO);
if (g_getenv ("XDG_VTNR") != NULL) {
int vt;
vt = atoi (g_getenv ("XDG_VTNR"));
if (vt > 0 && vt < 64) {
vt_string = g_strdup_printf ("vt%d", vt);
}
}
display_fd_string = g_strdup_printf ("%d", DISPLAY_FILENO);
g_ptr_array_add (arguments, X_SERVER);
if (vt_string != NULL) {
g_ptr_array_add (arguments, vt_string);
}
g_ptr_array_add (arguments, "-displayfd");
g_ptr_array_add (arguments, display_fd_string);
g_ptr_array_add (arguments, "-auth");
g_ptr_array_add (arguments, auth_file);
if (!allow_remote_connections) {
g_ptr_array_add (arguments, "-nolisten");
g_ptr_array_add (arguments, "tcp");
}
--
2.3.3

View File

@ -10,8 +10,8 @@
Summary: The GNOME Display Manager Summary: The GNOME Display Manager
Name: gdm Name: gdm
Version: 3.16.0.1 Version: 3.16.1
Release: 3%{?dist} Release: 1%{?dist}
Epoch: 1 Epoch: 1
License: GPLv2+ License: GPLv2+
Group: User Interface/X Group: User Interface/X
@ -19,7 +19,6 @@ URL: https://wiki.gnome.org/Projects/GDM
#VCS: git:git://git.gnome.org/gdm #VCS: git:git://git.gnome.org/gdm
Source: http://download.gnome.org/sources/gdm/3.16/gdm-%{version}.tar.xz Source: http://download.gnome.org/sources/gdm/3.16/gdm-%{version}.tar.xz
Source1: org.gnome.login-screen.gschema.override Source1: org.gnome.login-screen.gschema.override
Patch0: 0001-gdm-x-session-set-XORG_RUN_AS_USER_OK-1-environment-.patch
BuildRequires: pam-devel >= 0:%{pam_version} BuildRequires: pam-devel >= 0:%{pam_version}
BuildRequires: fontconfig >= 0:%{fontconfig_version} BuildRequires: fontconfig >= 0:%{fontconfig_version}
@ -105,7 +104,6 @@ files needed to build custom greeters.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .xorg-run-as-user-ok
autoreconf -i -f autoreconf -i -f
intltoolize -f intltoolize -f
@ -300,6 +298,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%{_libdir}/pkgconfig/gdm.pc %{_libdir}/pkgconfig/gdm.pc
%changelog %changelog
* Thu Apr 16 2015 Kalev Lember <kalevlember@gmail.com> 3.16.1-1
- Update to 3.16.1
* Tue Apr 07 2015 Ray Strode <rstrode@redhat.com> 3.16.0.1-3 * Tue Apr 07 2015 Ray Strode <rstrode@redhat.com> 3.16.0.1-3
- Fix permissions on /var/lib/gdm/.local/share - Fix permissions on /var/lib/gdm/.local/share
- Fixes starting Xorg without root on machines that started out - Fixes starting Xorg without root on machines that started out

View File

@ -1 +1 @@
aaa25131a812538bc7eb2974673ca372 gdm-3.16.0.1.tar.xz fcaf85a46d8de0132eccd1f0c02d7d7c gdm-3.16.1.tar.xz