Documente Academic
Documente Profesional
Documente Cultură
JJMORA.ES
"I THINK THE MAJOR GOOD IDEA IN UNIX WAS ITS CLEAN AND SIMPLE INTERFACE: OPEN, CLOSE, READ, AND
WRITE." KEN THOMPSON
LD_PRELOAD ?
admin April 15, 2008 5 Comments
programas. Primero debemos crear una librera con nuestra versin de la funcin elgeekerrante.com
HuelvaYork
bash3.00# gcc fPIC g c Wall my_chmod.c
bash3.00# ls lrt Iban Nieto
total 12
rwrr 1 root root 323 Apr 15 16:04 my_chmod.c SKaRCHa
rwrr 1 root root 228 Apr 15 16:05 ejemplo.c
rwrr 1 root root 3220 Apr 15 16:06 my_chmod.o the agile admin
www.barrapunto.com
Por ltimo compilamos nuestro sencillo programa de ejemplo ejemplo.c.
CATEGORIES
En este momento tenemos, por un lado, nuesta librera my_libc.so.1 y por otro, el
programa ejemplo, que se encarga de modificar los permisos del fichero
Almacenamiento
Blockchain
bash3.00# ls l /tmp/ejemplo1.txt
rwrr 1 root root 0 Apr 15 17:13 /tmp/ejemplo1.txt
Capacity planning
bash3.00#
bash3.00# ./ejemplo Cloud Computing
bash3.00# Kernel
bash3.00# LD_PRELOAD=/export/home/user1/my_libc.so.1
bash3.00# LDoms
bash3.00# ./ejemplo
Libros
Ahora cada vez que se llame a la funcin chmod(), aparecer el siguiente Network
SmartOS
my_chmod: ATENCION!!! Se ha modificado los permisos del fichero /tmp/ejemplo2.txt
Software Libre
bash3.00#
Solaris
Como podemos ver, ahora el comando chmod tambien devuelve la cadena con el aviso. SPARC
Todos los programas o comandos que ejecutemos, cada vez que se llame a la funcin
Tuning
chmod(), devolveran un mensaje de aviso, debemos cambiar el contenido de la variable
Uncategorized
de entornos LD_PRELOAD para que se deje de utilizar la interposicin de nuestra
Virtualizacion
libreria.
zfs
bash3.00#
bash3.00# LD_PRELOAD=
bash3.00# chmod 755 /tmp/ejemplo2.txt
bash3.00#
5 RESPONSES
ESKORT
April 10, 2015 / 11:12 am
225083 629637I was reading some of your content on this web site and I conceive this internet
website is truly informative ! Keep on putting up. 515760
HTTP://WWW.YOUTUBE.COM
April 13, 2015 / 10:50 pm
Thanks so much for giving me an update on this matter on your web-site. Please be aware that if
a brand new post appears or if perhaps any modifications occur about the current article, I would
be thinking about reading more and understanding how to make good using of those strategies
you talk about. Thanks for your efforts and consideration of other men and women by making
this site available.
CLICK HERE
May 2, 2015 / 1:13 am
Hello, I think your site might be having browser compatibility issues. When I look at your blog in
Chrome, it looks fine but when opening in Internet Explorer, it has some overlapping. I just
wanted to give you a quick heads up! Other then that, superb blog!