Re: GTK setuid problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 20, 2010 at 3:22 AM, robin <robinpv@xxxxxxxxxxxxxxxx> wrote:

>     s = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));

regular users can't do this on most (all?) linux systems. this is a
highly priviledged operation, and its not a suprise that a regular
user can't do this. in that respect, this issue has nothing to do with
GTK. it is somewhat connected to GTK in that GTK has (had?) issues
with running in the context of setuid(0). the simplest solution is to
make your app be setuid, open the socket before initializing GTK, then
drop setuid to keep GTK happy.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux