10-21-2008
How to intercept sytem calls
I would like to port a small utility from Linux to AIX and, lacking any software development knowledge for AIX, need some help:
I have a library called
Snoopy. Basically it intercepts the execv() and execve() system calls and logs them to the syslog-facility AUTHPRIV then passes control over to the original system calls. It does so by adding an entry into /etc/ld.so.preload so that the library gets preloaded and can intercept the systemcalls by its own versions of them.
I am now looking for an analogous solution for AIX to intercept these two system calls with their logging versions. Any ideas?
bakunin
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Will UNIX Sytem 5, release 3 run on a Pentium (clock speed 100-200 MHz)?
thanks (5 Replies)
Discussion started by: samklyle
5 Replies
2. Programming
i want to know the return value of calling system function in the sco unix 5.0.5.what is the meaning of the return value?
............
int ret;
char cmd;
strcpy(cmd,"compress -F -c file >file.Z");
ret = system(cmd);
.............
i want to know how to judge whether the file's compress is... (4 Replies)
Discussion started by: hit
4 Replies
3. IP Networking
The situation:
a Unix system (UnixWare 7.1.3) to which are connected other systems;
various p.c. on the LAN that they connect Unix to the system via TelNet.
The problem:
I need to intercept the address IP of the p.cs. connected via telnet to the Unix system.
Particularly, I have to know the... (2 Replies)
Discussion started by: paololrp
2 Replies
4. IP Networking
Is there any facility to filter/identify the data calls and voice calls coming throug modem?
OR
Can we get the data or voice calls information through a script(preferably C Kermit)? (0 Replies)
Discussion started by: pcsaji
0 Replies
5. AIX
Hi,
Whats are the changes I need if I have created the system from production server? I restore if from mksysb.
I know I need to change the /etc/hosts and ip address. What else?
Thanks in advance,
Itik (0 Replies)
Discussion started by: itik
0 Replies
6. Shell Programming and Scripting
I am looking to do a shell script that can send something simple via UDP from server 1 - to server 2
I want to be able to see on server 2 that I received everything expected..
ie.. I am looking at this to avoid using ping / traceroute to highlight network issues.. if a UDP packet gets lost... (1 Reply)
Discussion started by: frustrated1
1 Replies
7. UNIX for Advanced & Expert Users
HI all,
I'm trying to improve my systems to detect attempts to break in to my servers. For instance, I currently use crontab checking the /var/log/messages every 1 minute, but I feel it would be more efficient to do the processing only when messages are generated.
Is this possible, and if so... (4 Replies)
Discussion started by: bennerg
4 Replies
8. AIX
I need write a script to trace filesystem size change, such as /home will increase some size and then release some space. I don't know when increase happen. I want to get the size before increase and the size after release. How to write this script? (1 Reply)
Discussion started by: rainbow_bean
1 Replies
9. UNIX for Advanced & Expert Users
I need a broad spectrum understanding on this subject, and any help would be greatly appreciated.
First of all, as I understand it...
The way the video hardware works is the CPU sends information about input and possible changes to the display, the video card receives these changes, makes the... (2 Replies)
Discussion started by: ciNG
2 Replies
10. Shell Programming and Scripting
Hello All :)
I want to write a shell script to find the file system usage on multiple UNIX servers.
Commands: df -g fsJCAPS
Below script works fine and it displays results on terminal/console. I want to store /redirect output on to local server from where I'm running the script.
... (3 Replies)
Discussion started by: Mohammad Nawaz
3 Replies
UNIMPLEMENTED(2) Linux Programmer's Manual UNIMPLEMENTED(2)
NAME
afs_syscall, break, ftime, getpmsg, gtty, lock, madvise1, mpx, prof, profil, putpmsg, security, stty, tuxcall, ulimit, vserver - unimple-
mented system calls
SYNOPSIS
Unimplemented system calls.
DESCRIPTION
These system calls are not implemented in the Linux 2.6.22 kernel.
RETURN VALUE
These system calls always return -1 and set errno to ENOSYS.
NOTES
Note that ftime(3), profil(3) and ulimit(3) are implemented as library functions.
Some system calls, like alloc_hugepages(2), free_hugepages(2), ioperm(2), iopl(2), and vm86(2) only exist on certain architectures.
Some system calls, like ipc(2), create_module(2), init_module(2), and delete_module(2) only exist when the Linux kernel was built with sup-
port for them.
SEE ALSO
syscalls(2)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2007-07-05 UNIMPLEMENTED(2)