[pso] [Tema4][linux] Ipneckace problems...

Dragos Tatulea dragos.tatulea at gmail.com
Fri May 18 23:54:20 EEST 2007


- da, rulez cu root
- output cat /proc/devices (/dev/devices nu exista, am presupus ca era vorba
de /proc/devices):
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 /dev/vc/0
  4 tty
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 42 ipnecklace
128 ptm
136 pts

Block devices:
  2 fd
  7 loop
  8 sd
 22 ide1
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd

- output strace:
blackwing:/wrk/ipdriver# strace ./ipnecklace enable
execve("./ipnecklace", ["./ipnecklace", "enable"], [/* 26 vars */]) = 0
uname({sys="Linux", node="blackwing", ...}) = 0
brk(0)                                  = 0x804b000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f52000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26154, ...}) = 0
mmap2(NULL, 26154, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f4b000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1241580, ...}) = 0
mmap2(NULL, 1247388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7e1a000
mmap2(0xb7f41000, 28672, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x127) = 0xb7f41000
mmap2(0xb7f48000, 10396, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f48000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7e19000
mprotect(0xb7f41000, 20480, PROT_READ)  = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e198e0, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}) = 0
munmap(0xb7f4b000, 26154)               = 0
open("/dev/ipdriver", O_RDWR)           = -1 ENOENT (No such file or
directory)
dup(2)                                  = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
brk(0)                                  = 0x804b000
brk(0x806c000)                          = 0x806c000
fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f51000
_llseek(3, 0, 0xbfd56ff4, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(3, "can\'t open /dev/ipnecklace: No s"..., 54can't open
/dev/ipnecklace: No such file or directory
) = 54
close(3)                                = 0
munmap(0xb7f51000, 4096)                = 0
exit_group(1)                           = ?
Process 3384 detached
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070518/e0ce2050/attachment.htm


More information about the pso mailing list