Summary: | kdm failed to start KDE under linux vserver enviroment | ||
---|---|---|---|
Product: | [Unmaintained] kdm | Reporter: | Soewono Effendi <seffendi> |
Component: | general | Assignee: | kdm bugs tracker <kdm-bugs-null> |
Status: | RESOLVED NOT A BUG | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Soewono Effendi
2006-05-14 20:51:56 UTC
that message is coming from the X server. gdm certainly runs it as a different user which has CAP_SYS_RAWIO. please verify. yes indeed (or maybe?). using pstree I got the following (other irrelevant stuffs removed): * for gdm init-+-gdm--gdm-+-Xorg +-x-session-manag-- using kdm init-+-kdm-+-Xorg +-kdm-startkde-+-kwrapper I forgot to mention that the crashed happened after the user login, and than logout again, kdm failed to (re)start again, i.e. first kde-session is working, but not after that. What I try to do is to reduce the linux capabilities in kdm/Xsetup, which works just fine only for the first KDE-session. Under Gnome I reduce the capabilities in gdm/PostLogin/Default, which works just fine, also after I quite the first session. I think this is because the different way gdm and kdm are forking the X-session. (Not really sure about that though.) best regards. kdm's process tree looks like this: init-+-kdm-+-Xorg v- those come in sequence +-kdm-+-Xsetup +-kdm_greet +-Xstartup +-Xsession->startkde-+-kwrapper `-Xreset i wouldn't really call it a bug that kdm happens to be gdm-incompatible regarding the process structure. you just have to adapt your script. you might need to ensure that the Xserver dies after the session (like in gdm) - use the TerminateServer option then. I'm agree with you. No, it's _not_ a bug, maybe it's a kind of "optimation" ;) I tried also to let the Xserver to die after the session, sadly it doesn't help, since I presume the capabilities needed are already dropped. For sure I could also try to start kde using gdm (still didn't manage to do it though), but it would be really nice, to be able to use native KDE display manager. best regards and thank you any how. well, why do you drop the rights of the entire dm? why not just the session sub-daemon (and everything below) and possibly the x server? Well, it's only for security reason, but I'm open for any suggestions. I also tried to reduce the capabilities in /etc/kde3/kdm/Xsession, /etc/kde3/kdm/Xsetup, and also /etc/kde3/kdm/Xstartup. None worked. |