Search Results

Search: Posts Made By: DendyGamer
28,785
Posted By DendyGamer
You are right, using seteuid will work, but there...
You are right, using seteuid will work, but there is a problem with sending signals: kill(-1,SIGKILL) will kill all processes, not only processes with uid=killer's_euid. Killer process has uid=0, so...
Forum: Programming 12-02-2011
3,978
Posted By DendyGamer
fprintf is not async-signal safe, but replacing...
fprintf is not async-signal safe, but replacing it by write(STDERR_FILENO,...) did not change anything - received only 1 SIGUSR1 of 3.
Forum: Programming 12-02-2011
3,978
Posted By DendyGamer
Why "signal safety" may change something? Signals...
Why "signal safety" may change something? Signals are blocked, when signal action called.

Ok, I've found list of async-signal-safe functions. I've replaced pthread_join by sleep(3) and system() by...
Forum: Programming 12-01-2011
3,978
Posted By DendyGamer
Losing signal problem
I'm newbie in UNIX programming, I have a problem with signals. I'm writing multithread program, where threads can die at any moment. When thread dies it generates signal SIGUSR1 to main thread and...
28,785
Posted By DendyGamer
I'm writting programm to test students programms...
I'm writting programm to test students programms (user sends source code via web, server compiles it, run it with some tests). I'm trying to prevent unkillable programms when user's programm forks a...
28,785
Posted By DendyGamer
Yes, but i do not know is it safe. I mean killall...
Yes, but i do not know is it safe. I mean killall gets process list from kernel. While getting process list from kernel process_we_want_to_kill can call fork and some processes may be stay alive...
28,785
Posted By DendyGamer
Kill all process by UID
Is there any secure way to kill all processes with specified UID ?
Traditional way like

setuid(WANTED_UID);
kill(-1,SIGKILL);

is not secure, because this programm will receive...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 07:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy