Re: GTK setuid problem



On Tue, Apr 20, 2010 at 3:22 AM, robin <robinpv iwavesystems com> 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.


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