[Bug 210486] New: Gnome uses wrong home directory
https://bugzilla.novell.com/show_bug.cgi?id=210486 Summary: Gnome uses wrong home directory Product: SUSE Linux 10.1 Version: Final Platform: x86 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: GNOME - Platform AssignedTo: bnc-team-gnome-platform@forge.provo.novell.com ReportedBy: jengelh@gmx.de QAContact: qa@suse.de Some GNOME component uses the home directory as retrieved by getpw*() rather than $HOME. /dev/shm > export HOME=$PWD /dev/shm > firefox Type Manifest File: /dev/shm/.mozilla/firefox/gwtxjgt9.default/xpti.dat *** Registering xpcomObsoleteModule components (all right -- a generic module!) *** Registering xpconnect components (all right -- a generic module!) *** Registering nsUConvModule components (all right -- a generic module!) *** Registering nsUCvMathModule components (all right -- a generic module!) *** Registering nsI18nModule components (all right -- a generic module!) *** Registering necko_core_and_primary_protocols components (all right -- a generic module!) *** Registering necko_secondary_protocols components (all right -- a generic module!) *** Registering nsJarModule components (all right -- a generic module!) *** Registering nsPrefModule components (all right -- a generic module!) *** Registering nsSecurityManagerModule components (all right -- a generic module!) *** Registering nsRDFModule components (all right -- a generic module!) *** Registering nsParserModule components (all right -- a generic module!) *** Registering nsGfxPSModule components (all right -- a generic module!) *** Registering nsGfxGTKModule components (all right -- a generic module!) *** Registering nsImageLib2Module components (all right -- a generic module!) *** Registering nsPluginModule components (all right -- a generic module!) *** Registering nsWidgetGtk2Module components (all right -- a generic module!) *** Registering nsLayoutModule components (all right -- a generic module!) *** Registering docshell_provider components (all right -- a generic module!) *** Registering embedcomponents components (all right -- a generic module!) *** Registering Browser_Embedding_Module components (all right -- a generic module!) *** Registering nsEditorModule components (all right -- a generic module!) *** Registering nsTransactionManagerModule components (all right -- a generic module!) *** Registering nsComposerModule components (all right -- a generic module!) *** Registering appshell components (all right -- a generic module!) *** Registering nsCJVMManagerModule components (all right -- a generic module!) *** Registering nsAccessibilityModule components (all right -- a generic module!) *** Registering nsChromeModule components (all right -- a generic module!) *** Registering nsMorkModule components (all right -- a generic module!) *** Registering nsFindComponent components (all right -- a generic module!) *** Registering application components (all right -- a generic module!) *** Registering nsFileViewModule components (all right -- a generic module!) *** Registering RemoteServiceModule components (all right -- a generic module!) *** Registering CommandLineModule components (all right -- a generic module!) *** Registering nsToolkitCompsModule components (all right -- a generic module!) *** Registering Apprunner components (all right -- a generic module!) *** Registering BOOT components (all right -- a generic module!) *** Registering NSS components (all right -- a generic module!) *** Registering PKI components (all right -- a generic module!) *** Registering nsCookieModule components (all right -- a generic module!) *** Registering nsXMLExtrasModule components (all right -- a generic module!) *** Registering nsAutoConfigModule components (all right -- a generic module!) *** Registering nsSystemPrefModule components (all right -- a generic module!) *** Registering TransformiixModule components (all right -- a generic module!) *** Registering nsUniversalCharDetModule components (all right -- a generic module!) *** Registering nsWebServicesModule components (all right -- a generic module!) *** Registering nsAuthModule components (all right -- a generic module!) *** Registering nsPermissionsModule components (all right -- a generic module!) *** Registering SearchServiceModule components (all right -- a generic module!) *** Registering BrowserDirProvider components (all right -- a generic module!) *** Registering nsBrowserCompsModule components (all right -- a generic module!) nsNativeComponentLoader: autoregistering begins. nsNativeComponentLoader: autoregistering succeeded nsNativeComponentLoader: registering deferred (0) pldhash: for the table at address 0x8be7380, the given entrySize of 44 probably favors chaining over double hashing. WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsChromeRegistry.cpp, line 1252 WARNING: Cannot create startup observer : @mozilla.org/dbus;1, file nsAppStartupNotifier.cpp, line 112 GFX: dpi=96 t2p=0.0666667 p2t=15 depth=24 ++WEBSHELL == 1 (Gecko:14960): libgnomevfs-WARNING **: Unable to create ~/.gnome2 directory: Read-only file system Could not create per-user gnome configuration directory `/J/home/jengelh/.gnome2/': Read-only file system nsStringStats => mAllocCount: 787 => mReallocCount: 141 => mFreeCount: 593 -- LEAKED 194 !!! => mShareCount: 459 => mAdoptCount: 60 => mAdoptFreeCount: 57 -- LEAKED 3 !!! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210486 federico@ximian.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |federico@ximian.com Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from federico@ximian.com 2006-10-06 08:24 MST ------- $HOME is not trustworthy, because you could change it to try to spoof setuid programs. Neither is $LOGNAME, for the same reason. GNOME does this (glib/glib/gutils.c:g_get_any_init_do()) (pseudocode): logname = getenv ("LOGNAME"); if (logname) { pw = getpwnam (logname, ...); if (!pw || (pw->pw_uid != getuid()) { /* LOGNAME is lying. Trust the functions instead. */ pw = getpwuid (getuid (), ...); } } else pw = getpwuid (getuid (), ...); if (!pw) g_home_dir = getenv ("HOME"); /* fallback */ Please see http://bugzilla.gnome.org/show_bug.cgi?id=319535 for an additional case where this is needed. [Why do you want to change $HOME at all?] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=210486#c2 Jan Engelhardt <jengelh@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #2 from Jan Engelhardt <jengelh@gmx.de> 2007-09-27 09:33:58 MST ---
[Why do you want to change $HOME at all?]
So as to force the configuration files to go somewhere else. In Windows they've got these "portable firefox" and whatnot, and under Unix all it would take is export HOME=/media/usbdrive. Or so I thought... bash uses $HOME, and perhaps so many programs that I cannot even name them. GNOME being an exception once again as it seems. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=210486#c3 Mark Gordon <mtgordon@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtgordon@novell.com Status|REOPENED |RESOLVED Resolution| |WONTFIX Summary|Gnome uses wrong home directory |Gnome favors getpw* over $HOME --- Comment #3 from Mark Gordon <mtgordon@novell.com> 2007-10-11 12:24:42 MST --- One could mount the usb drive at the home directory specified in /etc/passwd. Given that the current behavior of glib is intentional and is perceived as necessary from a security standpoint, and since INVALID wasn't accepted, perhaps WONTFIX is more accurate. In any case, I've made the summary more precise. More upstream discussion of this issue from 5 years ago can be found at http://mail.gnome.org/archives/gtk-devel-list/2002-March/msg00066.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=210486 User gekker@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=210486#c4 Gary Ekker <gekker@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|GNOME - Platform |GNOME --- Comment #4 from Gary Ekker <gekker@novell.com> 2008-03-26 12:13:27 MST --- Changing to component GNOME. Sorry for the spam. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=210486 User jengelh@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=210486#c5 --- Comment #5 from Jan Engelhardt <jengelh@gmx.de> 2008-03-28 10:11:38 MST ---
One could mount the usb drive at the home directory specified in /etc/passwd.
Unprivileged mounts are not yet in the kernel... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com