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

Re: [opensuse-security] Weird encrypted filesystem problem.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The Tuesday 2007-04-17 at 13:56 +0200, Ludwig Nussel wrote:

> > Is there something I can do to expand info? How to know what that
> > "Function not implemented" is refering to?
> 
> Maybe an strace of mount gives some insight.

It does indeed. I did:

# strace -ff -o mountrace mount /dev/mapper/foo foodir/

and the 'mountrace' file contains:

brk(0x8088000)                          = 0x8088000
close(3)                                = 0
stat64("/sbin/mount.xfs", 0xbf9ec6f0)   = -1 ENOENT (No such file or directory)
mount("/dev/mapper/foo", "foodir/", "xfs", MS_MGC_VAL, NULL) = -1 ENOSYS (Function not implemented)
rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
write(2, "mount: Function not implemented\n", 32) = 32
exit_group(32)                          = ?


Truly, '/sbin/mount.xfs' does not exist in my system. Either that, or the 
non existing function is 'mount()'.

I case I'm jumping to conclussions too fast, I'll try to attach the file 
to this email, it's under 6KiB.

- -- 
Cheers,
       Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFGJNc0tTMYHG2NR9URAjxVAKCY7bP3tK51x43XZFYyrgTJE848uQCeMLNN
Qzq/J1z3MbsgSjEJuab9BCM=
=kVrC
-----END PGP SIGNATURE-----
execve("/bin/mount", ["mount", "/dev/mapper/foo", "foodir/"], [/* 72 vars */]) = 0
brk(0)                                  = 0x8066000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f20000
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=212372, ...}) = 0
mmap2(NULL, 212372, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7eec000
close(3)                                = 0
open("/lib/libvolume_id.so.0", 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\220\22"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=32200, ...}) = 0
mmap2(NULL, 33032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ee3000
fadvise64(3, 0, 33032, POSIX_FADV_WILLNEED) = 0
mmap2(0xb7eea000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7eea000
close(3)                                = 0
open("/lib/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\340`\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1491141, ...}) = 0
mmap2(NULL, 1234372, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7db5000
fadvise64(3, 0, 1234372, POSIX_FADV_WILLNEED) = 0
mmap2(0xb7edd000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x128) = 0xb7edd000
mmap2(0xb7ee0000, 9668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ee0000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7db4000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7db46c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7edd000, 4096, PROT_READ)   = 0
munmap(0xb7eec000, 212372)              = 0
brk(0)                                  = 0x8066000
brk(0x8087000)                          = 0x8087000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f1f000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2528
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7f1f000, 4096)                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=238464, ...}) = 0
mmap2(NULL, 238464, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d79000
close(3)                                = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=25460, ...}) = 0
mmap2(NULL, 25460, PROT_READ, MAP_SHARED, 3, 0) = 0xb7f19000
close(3)                                = 0
umask(022)                              = 022
open("/dev/null", O_RDWR|O_LARGEFILE)   = 3
close(3)                                = 0
getuid32()                              = 0
geteuid32()                             = 0
lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=1219, ...}) = 0
stat64("/dev/mapper/foo", {st_mode=S_IFBLK|0600, st_rdev=makedev(253, 0), ...}) = 0
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
open("/dev/mapper/foo", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, BLKGETSIZE64, 0xbf9ec760)      = 0
_llseek(3, 4699652096, [4699652096], SEEK_SET) = 0
read(3, "\307\276\344m\316\237}\366c>\242\330tF\22\6s\276Y\341\221"..., 2048) = 2048
_llseek(3, 4699716608, [4699716608], SEEK_SET) = 0
read(3, "\272m\rZ\326\271\255\271\216V\200\250 x\20u\257\221\317"..., 512) = 512
_llseek(3, 4699717120, [4699717120], SEEK_SET) = 0
read(3, "\ni\240\350\225\325\376\31\213\\\1P\254\341\26\274\306"..., 512) = 512
_llseek(3, 4699716608, [4699716608], SEEK_SET) = 0
read(3, "\272m\rZ\326\271\255\271\216V\200\250 x\20u\257\221\317"..., 512) = 512
_llseek(3, 4699685376, [4699685376], SEEK_SET) = 0
read(3, "oz\n\210`\21\243Y\205\r\334\35\221\241\272V\245\364,\326"..., 512) = 512
_llseek(3, 4699587072, [4699587072], SEEK_SET) = 0
read(3, "\347_os\352\356s\355\322u\367M\323qO\0059\205\254\"A\300"..., 512) = 512
_llseek(3, 4699586560, [4699586560], SEEK_SET) = 0
read(3, "\210}\204\241\317\262\23\317<\2321\r\251\t%}\323k:\355"..., 512) = 512
_llseek(3, 4699709440, [4699709440], SEEK_SET) = 0
read(3, "\347\203\35fV\235z8\215\275\355 \306\321E1\306\236\330"..., 512) = 512
_llseek(3, 4699513344, [4699513344], SEEK_SET) = 0
read(3, "S\23Lo\356\345\313\2\2726\331x\321\245\221\207|\24\334"..., 512) = 512
_llseek(3, 4699712000, [4699712000], SEEK_SET) = 0
read(3, "c\337\354\2\17 x1\321\301\24>{\365\234\267\311s\235\0E"..., 512) = 512
_llseek(3, 4699717120, [4699717120], SEEK_SET) = 0
read(3, "\ni\240\350\225\325\376\31\213\\\1P\254\341\26\274\306"..., 512) = 512
brk(0x80a9000)                          = 0x80a9000
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\0\21\202\0\0\0\0\0\0\0\0\0\0\0\0"..., 3072) = 3072
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\0\21\202\0\0\0\0\0\0\0\0\0\0\0\0"..., 5120) = 5120
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\0\21\202\0\0\0\0\0\0\0\0\0\0\0\0"..., 69632) = 69632
brk(0x8098000)                          = 0x8098000
brk(0x8088000)                          = 0x8088000
close(3)                                = 0
stat64("/sbin/mount.xfs", 0xbf9ec6f0)   = -1 ENOENT (No such file or directory)
mount("/dev/mapper/foo", "foodir/", "xfs", MS_MGC_VAL, NULL) = -1 ENOSYS (Function not implemented)
rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
write(2, "mount: Function not implemented\n", 32) = 32
exit_group(32)                          = ?