Summary: | JJ: Offer to su to root to kill frozen applications running as root | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Maciej Pilichowski <bluedzins> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | martin+kde, vbatts |
Priority: | NOR | Keywords: | junior-jobs |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.7.0 | |
Sentry Crash Report: | |||
Attachments: | makes kwin_killer use kauth to kill a root-owned client |
Description
Maciej Pilichowski
2006-06-20 10:51:09 UTC
Did kill -9 work? Yes and no. I (user) cannot kill it -- "operation not permitted", root can. Maybe it would look strange, but than dialog for root password would be a good idea, to kill all such applications. Reclassifying JJ: Client::killProcess() in kwin/client.cpp and kwin/killer/ . it seems that in kwin/killer/killer.cpp there could be a property of the uid owner of the pid, and do an if( uid = "0" ) at the bottom, as to how to prompt for kdesu auth, without trimming the cmd and straight running a command line argument, is a little beyond me. Created attachment 48026 [details]
makes kwin_killer use kauth to kill a root-owned client
Borrowed the code that ksysguard uses to kill processes using elevated privileges.
Instead of using kdesu I use KAuth.
Would you mind to publish the patch on http://reviewboard.kde.org for group kwin? We are currently in feature freeze and have to wait till trunk opens up again. A patch attached to a bug is easily lost and won't be lost with reviewboard. patch in reviewboard : http://reviewboard.kde.org/r/4460/ Closable? Git commit 189483d8369877eab49f46baecd6af7f442f629a by Martin Gr����lin. Committed on 07/03/2011 at 18:03. Pushed by graesslin into branch 'master'. Add KAuth support to KWin process killer See http://svn.reviewboard.kde.org/r/4460/ Thanks to Mikael Gerdin for the patch. CCMAIL: mikael.gerdin@gmail.com FEATURE: 129476 FIXED-IN: 4.7.0 M +18 -3 kwin/killer/killer.cpp http://commits.kde.org/kde-workspace/189483d8369877eab49f46baecd6af7f442f629a |