Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[QT][KDE] /.config creation (in rootfs!)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Thu May 05, 2011 2:52 pm    Post subject: [QT][KDE] /.config creation (in rootfs!) Reply with quote

Hello,

I'd like to as what is able to create /.config file with Trolltech.conf file inside?
I use KDE 4.6.2 from normal user account. When i remove that directory it's newly creating after a while.
WTF? KDE launched from normal user account shouldnt have permission to write in rootfs (/)

Code:
/ # pwd
/
/ # ls -a
.   bin   [b].config[/b]  etc   lib    lib64    lost+found  mnt  proc  sbin  tmp  var
..  boot  dev      home  lib32  libexec  media       opt  root  sys   usr
/ # cd .config
.config # ls
Trolltech.conf


What is doing this and how to prevent this?
Thanks!
_________________
Asio Software Technologies
Belliash IT Weblog
Back to top
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Thu May 05, 2011 3:20 pm    Post subject: Reply with quote

After short discussion with UberPinguin on #gentoo-security we decided to do some testing, the result i'm writing down, to not lost that.
I have stopped xdm service and removed whole /.config directory.
Then i have logged in my account i use for every-day work and typed startx. KDE 4.6.2 has started up and /.config directory has been recreated.

Code:
/ $ ls -la .config
total 12
drwxr-xr-x  2 root root 4096 May  5 17:12 .
drwxr-xr-x 22 root root 4096 May  5 17:12 ..
-rw-r--r--  1 root root  278 May  5 17:12 Trolltech.conf


As you can see its created in / with root:root ownership :roll:
_________________
Asio Software Technologies
Belliash IT Weblog
Back to top
View user's profile Send private message
ComaWhite
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 125

PostPosted: Sat May 07, 2011 1:12 pm    Post subject: Reply with quote

that Trolltech file is Qt doing that, not KDE.
Back to top
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Sun May 08, 2011 8:54 am    Post subject: Reply with quote

ComaWhite wrote:
that Trolltech file is Qt doing that, not KDE.


maybe, maybe not...
How you know?


First of all it's not created while launching every QT based software - i can login into failsafe and launch KWrite and that file wont be created.
Secondly its created during KDE startup process.

And finally - creating something in / needs root priviledges. Even if it is QT - its only library! Library not executed as stand-alone software! Library loaded by KDE with root priviledges!
_________________
Asio Software Technologies
Belliash IT Weblog
Back to top
View user's profile Send private message
Freeky
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2011
Posts: 129
Location: Novosibirsk, Russia

PostPosted: Mon May 30, 2011 3:21 am    Post subject: Reply with quote

ComaWhite wrote:
that Trolltech file is Qt doing that, not KDE.

I think it is connected just with kde. Because on my laptop with lxde and qt and this file is not.
Back to top
View user's profile Send private message
Core
n00b
n00b


Joined: 14 May 2007
Posts: 29

PostPosted: Wed Aug 03, 2011 8:24 pm    Post subject: Reply with quote

https://bugs.kde.org/show_bug.cgi?id=249217

Using patch from this bug, works for me:

/etc/portage/env/sys-apps/dbus

Code:
post_src_prepare() {
epatch "/etc/portage/env/sys-apps/dbus-kde-fixpath.patch"
}


/etc/portage/env/sys-apps/dbus-kde-fixpath.patch

Code:
--- a/bus/activation-helper.c
+++ b/bus/activation-helper.c
@@ -344,6 +344,8 @@ switch_user (char *user, DBusError *error)
                       "cannot setuid user %i", pw->pw_uid);
       return FALSE;
     }
+
+  _dbus_setenv ("HOME", pw->pw_dir);
 #endif
   return TRUE;
 }



Code:
emerge -1 dbus
Back to top
View user's profile Send private message
046
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 231
Location: Yaroslavl, Russia

PostPosted: Tue Jan 08, 2013 4:51 pm    Post subject: Reply with quote

Problem not with dbus, but in kde.
patch for kdelibs https://bugs.kde.org/show_bug.cgi?id=249217#c43
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum