Re: Rebooting the System

2006-04-13 Thread Liam R E Quin
On Thu, 2006-04-13 at 15:59 +1000, Justin Clift wrote:
 Liam R E Quin wrote:
 snip
  Root password should not be prompted for in a
  gtk-engine-themed window, of course...
 snip
 
 Out of curiosity, why is this bad?

A gtk+ theme engine is a piece of executable code (usually in C)
that can live in the user's login directory, not root's.

So you could write a gtk+ theme that (for example) captures
keystrokes and saves them to a file.

Note that most Gtk+ themes don't work this way, and even
when they do, the theme engine is usually in a trusted
directory, e.g. under /usr/share somewhere.

Investigate consolehelper, perhaps.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Rebooting the System

2006-04-13 Thread Matt Hull
a gentoo package installation doesnt require a reboot.

matt

On Thu, 13 Apr 2006, Justin Clift wrote:

 Liam R E Quin wrote:
 snip
  Root password should not be prompted for in a
  gtk-engine-themed window, of course...
 snip

 Out of curiosity, why is this bad?

 I was looking into this a while ago (even wrote some code, one part for
 a GTK prompt, another part for a backend to authenticate and then run
 the commands I was interested in - (Gentoo package installation btw)).

 ?

 Regards and best wishes,

 Justin Clift
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Rebooting the System

2006-04-13 Thread Justin Clift

Liam R E Quin wrote:

On Thu, 2006-04-13 at 15:59 +1000, Justin Clift wrote:

Liam R E Quin wrote:
snip

Root password should not be prompted for in a
gtk-engine-themed window, of course...

snip

Out of curiosity, why is this bad?


A gtk+ theme engine is a piece of executable code (usually in C)
that can live in the user's login directory, not root's.

So you could write a gtk+ theme that (for example) captures
keystrokes and saves them to a file.

Note that most Gtk+ themes don't work this way, and even
when they do, the theme engine is usually in a trusted
directory, e.g. under /usr/share somewhere.

Investigate consolehelper, perhaps.


Exactly why I asked.  On RH systems, it appears to be broken into a user 
level GUI prompter that asks for the root password, and a privileged 
component that does the authentication and task.


Not being aware of the GTK theme engine problem you mentioned above, I 
didn't look at that side of things closely at the time.  Guess they'd 
have to do the above but not use theming somehow. ;)


Thanks for heads up Liam.

Regards and best wishes,

Justin Clift



Liam



___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Rebooting the System

2006-04-12 Thread Justin Clift

Liam R E Quin wrote:
snip

Root password should not be prompted for in a
gtk-engine-themed window, of course...

snip

Out of curiosity, why is this bad?

I was looking into this a while ago (even wrote some code, one part for 
a GTK prompt, another part for a backend to authenticate and then run 
the commands I was interested in - (Gentoo package installation btw)).


?

Regards and best wishes,

Justin Clift
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Rebooting the System

2006-04-11 Thread Sandeep KS
Hello everyone,
I am doing a project using GTK which needs rebooting of the system. 
When the code is executed, the user is asked to select some details. After he 
enters all the details and clicks on the  OK button, i need to save all the 
details and reboot the system. After rebooting, i need to execute the code 
again automatically with the next page of the code displayed. I also need to 
show all the saved details.
Is it possible to achieve this? How can i do it?

Thanking You in advance
Sandeep


Regards
 
 

 
 


-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Rebooting the System

2006-04-11 Thread Guy Rouillier

Sandeep KS wrote:

Hello everyone,
I am doing a project using GTK which needs rebooting of the system. 
When the code is executed, the user is asked to select some details. After he enters all the details and clicks on the  OK button, i need to save all the details and reboot the system. After rebooting, i need to execute the code again automatically with the next page of the code displayed. I also need to show all the saved details.

Is it possible to achieve this? How can i do it?


What are you doing that requires rebooting the system?  This behavior is 
a Windows-ism that normally isn't required on Unix-type OSes.


Shutdown and reboot are protected operations.  You won't be able to rely 
on them being available to non-root users.


--
Guy Rouillier
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list