gdm r6252 - in trunk: . daemon
- From: bcameron svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r6252 - in trunk: . daemon
- Date: Tue, 27 May 2008 05:04:09 +0000 (UTC)
Author: bcameron
Date: Tue May 27 05:04:09 2008
New Revision: 6252
URL: http://svn.gnome.org/viewvc/gdm?rev=6252&view=rev
Log:
2008-05-23 Brian Cameron <brian cameron sun com>
* daemon/gdm-display-access-file.c: Update patch so it contains
some improvements by Simon Zheng. Fixes bug #534605.
Modified:
trunk/ChangeLog
trunk/daemon/gdm-display-access-file.c
Modified: trunk/daemon/gdm-display-access-file.c
==============================================================================
--- trunk/daemon/gdm-display-access-file.c (original)
+++ trunk/daemon/gdm-display-access-file.c Tue May 27 05:04:09 2008
@@ -227,10 +227,10 @@
fp = NULL;
- /* Create directory on startup if not exist */
+ /* Create directory if not exist, then set permission 01775 and ownership root:gdm */
if (g_file_test (GDM_XAUTH_DIR, G_FILE_TEST_IS_DIR) == FALSE) {
g_unlink (GDM_XAUTH_DIR);
- if (g_mkdir (GDM_XAUTH_DIR, S_ISVTX|S_IRWXU|S_IRWXG) != 0) {
+ if (g_mkdir (GDM_XAUTH_DIR, S_ISVTX|S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH) != 0) {
g_set_error (error,
G_FILE_ERROR,
g_file_error_from_errno (errno),
@@ -239,7 +239,7 @@
goto out;
}
- g_chmod (GDM_XAUTH_DIR, S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO);
+ g_chmod (GDM_XAUTH_DIR, S_ISVTX|S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH);
_get_uid_and_gid_for_user ("gdm", &uid, &gid);
chown (GDM_XAUTH_DIR, 0, gid);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]