[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: IPC beetween deamon application run as root and KDE dcop client
From: Christian Hubinger <e9806056 () student ! tuwien ! ac ! at>
Date: 2005-04-21 19:56:44
Message-ID: 4268057C.4010109 () student ! tuwien ! ac ! at
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gary L. Greene Jr. wrote:
| On Thursday 21 April 2005 05:36 pm, Christian Hubinger wrote:
|
|>Hi!
|>
|>I'm trieing to write a deamon for KMyFirewall that monitors the the
|>iptables rules setup in the kernel (want to implement a pannel applet).
|>In order to query the rules i ned to run my deamon as root (so far quite
|>clear).
|>
|>My first attempt was to write a dcop client that is set suid in order to
|>be able to query the kernel even when the user is not logged in as root.
|>The proble that occoured is that the KDE libs do not allow me to set the
|>executable suid.
|>
|>So now i'm thinking about writing a small c daemon which can communicat
|>with my non root (dcop enabled) app via a message queue/or socket.
|>As far as i can tell (i have hardly any experience in IPC programming)
|>this should work, or am i wrong here (please let me know if thats the
|>case).
|>
|>My question now is if there is any standard (KDE) way to do such a
|>thing. If so please let me know where to find an example for this, if
|>not - well i'll dig for some time into Linux IPC stuuf.
|>
|>thanks in advance for your help & greetings,
|>chris
|
|
| Why not look into DBUS for this, as it's been designed to be used in this
| manner?
I'll have a look at it, i don't know anythiong about it yet.
well thanks for the answer
greetings,
chris
|
|
|
| ------------------------------------------------------------------------
|
|
|
|>>Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
unsubscribe <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFCaAV8AgmexFOwd6YRAkbSAJ9LdCZr/KthV0G6xGd8I42+YeYHqwCfZhOP
bzZZ6S0tlQjsV9zGpLSdgoQ=
=AhyT
-----END PGP SIGNATURE-----
["e9806056.vcf" (text/x-vcard)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic