gnome-user-share r290 - in trunk: . src
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-user-share r290 - in trunk: . src
- Date: Mon, 19 Jan 2009 10:47:20 +0000 (UTC)
Author: hadess
Date: Mon Jan 19 10:47:20 2009
New Revision: 290
URL: http://svn.gnome.org/viewvc/gnome-user-share?rev=290&view=rev
Log:
2009-01-19 Bastien Nocera <hadess hadess net>
* src/user_share.c (main): gnome-user-share cannot
run as root, there's the potential for sharing files that
shouldn't be shared, such as system files
Modified:
trunk/ChangeLog
trunk/src/user_share.c
Modified: trunk/src/user_share.c
==============================================================================
--- trunk/src/user_share.c (original)
+++ trunk/src/user_share.c Mon Jan 19 10:47:20 2009
@@ -427,6 +427,11 @@
gtk_init (&argc, &argv);
+ if (g_strcmp0 (g_get_real_name (), "root") == 0) {
+ g_warning ("gnome-user-share cannot be started as root for security reasons.");
+ return 1;
+ }
+
signal (SIGPIPE, SIG_IGN);
signal (SIGINT, cleanup_handler);
signal (SIGHUP, cleanup_handler);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]