kov is currently certified at Journeyer level.

Name: Gustavo Noronha
Member since: 2002-04-13 22:02:18
Last Login: 2009-06-07 18:10:53

FOAF RDF Share This

Homepage: http://people.debian.org/~kov

Notes:

A Brazilian guy.

Projects

Recent blog entries by kov

Syndication: RSS 2.0

gksu-polkit gets pipe support

One of the features I really wanted to get into gksu-policykit early was working correctly with pipes. With the current gksu you cannot do something such as echo blah | gksu tr a-z A-Z. It is actually very hard to work correctly with input/output with su and sudo bellow. I do think it also has something to do with me not being too clever in UNIX file descriptors at the time I originally planned how gksu works. I did get an email from someone at Sun offering to write support for that who never mailed me again, but anyway…

gksu-policykit is currently able to get all the input and output forwarded to/from the process by using an interface similar to glib’s g_spawn_async_with_pipes. Here’s what we are able to do already:


$ echo test string | ./gksu/gksu-polkit /usr/bin/tr a-z A-Z
TEST STRING
$

It’s impressive to me that all the input and output goes over DBus quite nicely.

So it is currently possible to use simple library calls in glib-based code to run something as root, by taking advantage of the gksu policykit mechanism:

GksuProcess* gksu_process_new(const gchar *working_directory, const gchar **arguments);
gboolean gksu_process_spawn_async(GksuProcess *process, GError **error);

The DBus service already works; it is able to setup the environment and X authorization correctly. There is still lots to do; startup notification is still not handled, and dealing with the application’s stdandard output and error messages, as well as providing a way for the caller to send stuff into the processe’s standard input. It is already possible to start an application and know that it has been finished, though.

As for the code:

$ git clone git://kov.eti.br/srv/git/gksu-polkit.git/

Criticism is welcome!

In other news… I’d like to ask our dear lazy web if anyone is using some nice way of providing only posts tagged in specific categories in a feed in wordpress. I’d like to use that to provide my posts to planet debian from my wordpress install.

As far as debcamp work plans go, my own has been making me quite happy. I started the week trying to start implementing gksu policykit mostly in vala, and failing miserably. Vala isn't ready to help me do some of the more weird things I had in mind.

The good news is falling back to C worked pretty smoothly, and I have the basic foundation working. There is plenty to be implemented still, but moving forward always feels good. If anyone is interested in discussing the gksu replacement that is being built on top of the PolicyKit framework come talk to me in the hack lab =D. Take a look at this gratuitous screenshot.

First day at debconf8's debcamp! I have published an ical file with the stuff I plan to attend, if anyone is interested: http://people.debian.org/~kov/kov_debconf8.ical.

Btw, dear lazy web, the official ical file is using ART as TZID, and that seems to make Evolution go nuts on the timing of the talks. Anyone has got a clue on what my be happening? I downloaded the file and changed it to use America/Sao_Paulo as TZID and now Evo acts correctly.

So, some interesting things happened since I last reported. TurboGears finally entered experimental, and has received a bit of good feedback from some users; I became sqlobject co-maintainer, and packaged a svn snapshot to experimental to make that happen, too. TG 0.9a8 has just been uploaded, btw. Feedback would be great! I would welcome people willing to help on deciding the best way and doing packaging of TG add-on widgets.

In other news, I've been doing some last feature aditions to libgksu and gksu. The former now ships a gksu-properties capplet that allows users to set up some of the behavior. The gconf options and this capplet surely need some love, but they'll get it in the future. After the "redesign" libgksu now holds almost all the code that does the gksu magic, and should be more secure in some ways.

The application, gksu, ships a nautilus extension, which adds a 'open as administrator' item in the context menu for files and directories in Nautilus. I'd love to receive feedback and buf reports on this new feature. Right now the nautilus extension uses the gksu application, instead of the library, since there seems to be problems with doing async calls of libgksu inside of another main loop, or something, and I could not get it to work.

The gksuexec application, which provided the 'Run as another user' menu item has been removed in these last versions. Will anyone miss it? I'm willing to have this functionality implemented in gksu itself, if needed, but I'm not sure it's that useful.

53 older entries...

 

kov certified others as follows:

  • kov certified kov as Journeyer
  • kov certified wichert as Master
  • kov certified spuk as Journeyer
  • kov certified douglaz as Journeyer
  • kov certified walters as Master
  • kov certified Gandhi as Journeyer
  • kov certified seb128 as Master
  • kov certified acidx as Journeyer
  • kov certified jdub as Master
  • kov certified tevaum as Journeyer
  • kov certified Lothar as Apprentice
  • kov certified james as Journeyer
  • kov certified caio1982 as Apprentice
  • kov certified regisfg as Journeyer
  • kov certified mones as Journeyer
  • kov certified alfons as Journeyer
  • kov certified fweiden as Journeyer
  • kov certified Eitch as Journeyer
  • kov certified jdahlin as Master
  • kov certified lgs as Master
  • kov certified vorlon as Master
  • kov certified tiagovaz as Apprentice

Others have certified kov as follows:

  • kov certified kov as Journeyer
  • fxn certified kov as Journeyer
  • acme certified kov as Journeyer
  • douglaz certified kov as Journeyer
  • Gandhi certified kov as Journeyer
  • dm certified kov as Apprentice
  • gdvieira certified kov as Journeyer
  • xsandro certified kov as Apprentice
  • anderson certified kov as Journeyer
  • seb128 certified kov as Journeyer
  • jarashi certified kov as Journeyer
  • tevaum certified kov as Journeyer
  • elanthis certified kov as Journeyer
  • andrelop certified kov as Journeyer
  • mones certified kov as Journeyer
  • cascardo certified kov as Journeyer
  • pbor certified kov as Journeyer
  • jahnke certified kov as Journeyer
  • Lothar certified kov as Journeyer
  • rootsh certified kov as Apprentice
  • faw certified kov as Journeyer
  • tiagovaz certified kov as Journeyer
  • valessio certified kov as Journeyer
  • fweiden certified kov as Journeyer
  • goedson certified kov as Journeyer
  • drivera certified kov as Journeyer
  • caio1982 certified kov as Journeyer
  • si0ux certified kov as Journeyer
  • metal certified kov as Journeyer
  • mako certified kov as Journeyer
  • aurium certified kov as Master
  • everaldo certified kov as Journeyer
  • lucasr certified kov as Journeyer
  • enerv certified kov as Journeyer
  • sysdebug certified kov as Journeyer
  • jarod certified kov as Master
  • frolic certified kov as Journeyer
  • stratus certified kov as Journeyer
  • ittner certified kov as Journeyer
  • lmvaz certified kov as Master
  • byone certified kov as Master

[ Certification disabled because you're not logged in. ]

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!

X
Share this page