On Saturday April 12 2008 04:54:44 Benjamin M. Schwartz wrote:
> I need the ability to run in profiles as a user who is not the "owner" of
> the files on disk.
> ...
> I would prefer not to maintain a patched fork of Wine just to get this
> trivial feature.  That doesn't benefit anyone.  I'm sure we can find a way
> to provide this ability without compromising the security of users in the
> general case.

        Well, you probably want to see 
http://bugs.winehq.org/show_bug.cgi?id=11112 - 
there you find a discussion about this issue.
        Personally, I use attached hack for now until above bug will be FIXED.
--- wine/libs/wine/config.c.ark	2008-01-09 13:46:18.000000000 +0000
+++ wine/libs/wine/config.c	2008-01-09 13:58:46.000000000 +0000
@@ -233,9 +233,7 @@
         }
     }
     if (!S_ISDIR(st.st_mode)) fatal_error( "%s is not a directory\n", config_dir );
-#ifdef HAVE_GETUID
-    if (st.st_uid != getuid()) fatal_error( "%s is not owned by you\n", config_dir );
-#endif
+    if (access(config_dir, R_OK|W_OK|X_OK)) fatal_error( "%s is not readable, writable and executable by you\n", config_dir );
 
     init_server_dir( st.st_dev, st.st_ino );
 }


Reply via email to