1. [sccook@server rhel65]$ strace sudo ls
  2. execve("/usr/bin/sudo", ["sudo", "ls"], [/* 33 vars */]) = 0
  3. brk(0)                                  = 0x7f1486336000
  4. fcntl(0, F_GETFD)                       = 0
  5. fcntl(1, F_GETFD)                       = 0
  6. fcntl(2, F_GETFD)                       = 0
  7. access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or directory)
  8. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f148496a000
  9. access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
  10. open("/etc/ld.so.cache", O_RDONLY)      = 3
  11. fstat(3, {st_mode=S_IFREG|0644, st_size=48404, ...}) = 0
  12. mmap(NULL, 48404, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f148495e000
  13. close(3)                                = 0
  14. open("/lib64/libaudit.so.1", O_RDONLY)  = 3
  15. read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260% \3405\0\0\0"..., 832) = 832
  16. fstat(3, {st_mode=S_IFREG|0755, st_size=115536, ...}) = 0
  17. mmap(NULL, 2208304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1484530000
  18. mprotect(0x7f1484547000, 2093056, PROT_NONE) = 0
  19. mmap(0x7f1484746000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f1484746000
  20. close(3)                                = 0
  21. open("/lib64/libselinux.so.1", O_RDONLY) = 3
  22. read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0PX \3046\0\0\0"..., 832) = 832
  23. fstat(3, {st_mode=S_IFREG|0755, st_size=124624, ...}) = 0
  24. mmap(NULL, 2221912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1484311000
  25. mprotect(0x7f148432e000, 2093056, PROT_NONE) = 0
  26. mmap(0x7f148452d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7f148452d000
  27. mmap(0x7f148452f000, 1880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f148452f000
  28. close(3)                                = 0
  29. open("/lib64/libutil.so.1", O_RDONLY)   = 3
  30. read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\16 \3405\0\0\0"..., 832) = 832
  31. fstat(3, {st_mode=S_IFREG|0755, st_size=17520, ...}) = 0
  32. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f148495d000
  33. mmap(NULL, 2105600, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f148410e000
  34. mprotect(0x7f1484110000, 2093056, PROT_NONE) = 0
  35. mmap(0x7f148430f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f148430f000
  36. close(3)                                = 0
  37. open("/lib64/libdl.so.2", O_RDONLY)     = 3
  38. read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r`\3225\0\0\0"..., 832) = 832
  39. fstat(3, {st_mode=S_IFREG|0755, st_size=22536, ...}) = 0
  40. mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1483f0a000
  41. mprotect(0x7f1483f0c000, 2097152, PROT_NONE) = 0
  42. mmap(0x7f148410c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f148410c000
  43. close(3)                                = 0
  44. open("/lib64/libc.so.6", O_RDONLY)      = 3
  45. read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\355\241\3225\0\0\0"..., 832) = 832
  46. fstat(3, {st_mode=S_IFREG|0755, st_size=1922152, ...}) = 0
  47. mmap(NULL, 3745960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1483b77000
  48. mprotect(0x7f1483d01000, 2093056, PROT_NONE) = 0
  49. mmap(0x7f1483f00000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x189000) = 0x7f1483f00000
  50. mmap(0x7f1483f05000, 18600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1483f05000
  51. close(3)                                = 0
  52. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f148495c000
  53. mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f148495a000
  54. arch_prctl(ARCH_SET_FS, 0x7f148495a7a0) = 0
  55. mprotect(0x7f1483f00000, 16384, PROT_READ) = 0
  56. mprotect(0x7f148410c000, 4096, PROT_READ) = 0
  57. mprotect(0x7f148430f000, 4096, PROT_READ) = 0
  58. mprotect(0x7f148452d000, 4096, PROT_READ) = 0
  59. mprotect(0x7f1484746000, 4096, PROT_READ) = 0
  60. mprotect(0x7f1484b8a000, 4096, PROT_READ) = 0
  61. mprotect(0x7f148496b000, 4096, PROT_READ) = 0
  62. munmap(0x7f148495e000, 48404)           = 0
  63. statfs("/selinux", {f_type=0xf97cff8c, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
  64. brk(0)                                  = 0x7f1486336000
  65. brk(0x7f1486357000)                     = 0x7f1486357000
  66. open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
  67. fstat(3, {st_mode=S_IFREG|0644, st_size=99158576, ...}) = 0
  68. mmap(NULL, 99158576, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f147dce6000
  69. close(3)                                = 0
  70. geteuid()                               = 10000000
  71. open("/usr/share/locale/locale.alias", O_RDONLY) = 3
  72. fstat(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0
  73. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1484969000
  74. read(3, "# Locale name alias data base.\n#"..., 4096) = 2512
  75. read(3, "", 4096)                       = 0
  76. close(3)                                = 0
  77. munmap(0x7f1484969000, 4096)            = 0
  78. open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
  79. open("/usr/share/locale/en_US.utf8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
  80. open("/usr/share/locale/en_US/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
  81. open("/usr/share/locale/en.UTF-8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
  82. open("/usr/share/locale/en.utf8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
  83. open("/usr/share/locale/en/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
  84. write(2, "sudo", 4sudo)                     = 4
  85. write(2, ": ", 2: )                       = 2
  86. write(2, "effective uid is not 0, is sudo "..., 54effective uid is not 0, is sudo installed setuid root?) = 54
  87. write(2, "\n", 1
  88. )                       = 1
  89. close(0)                                = 0
  90. access("/var/run/utmpx", F_OK)          = -1 ENOENT (No such file or directory)
  91. open("/var/run/utmp", O_RDONLY|O_CLOEXEC) = 0
  92. fcntl(0, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
  93. lseek(0, 0, SEEK_SET)                   = 0
  94. alarm(0)                                = 0
  95. rt_sigaction(SIGALRM, {0x7f1483c9ae00, [], SA_RESTORER, 0x7f1483ba9960}, {SIG_DFL, [], 0}, 8) = 0
  96. alarm(10)                               = 0
  97. fcntl(0, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0
  98. read(0, "\2\0\0\0\0\0\0\0~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  99. read(0, "\1\0\0\0003\0\0\0~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  100. read(0, "\6\0\0\0j\6\0\0tty2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  101. read(0, "\6\0\0\0o\6\0\0tty4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  102. read(0, "\6\0\0\0m\6\0\0tty3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  103. read(0, "\6\0\0\0h\6\0\0tty1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  104. read(0, "\6\0\0\0q\6\0\0tty5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  105. read(0, "\6\0\0\0l\6\0\0/dev/hvc0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  106. read(0, "\6\0\0\0s\6\0\0tty6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  107. read(0, "\7\0\0\0/q\0\0pts/0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  108. read(0, "\7\0\0\0t\6\0\0pts/1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  109. read(0, "\10\0\0\0\307e\0\0pts/2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  110. read(0, "\10\0\0\0Sf\0\0pts/3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  111. read(0, "\10\0\0\0#u\0\0pts/4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
  112. read(0, "", 384)                        = 0
  113. fcntl(0, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
  114. alarm(0)                                = 10
  115. rt_sigaction(SIGALRM, {SIG_DFL, [], SA_RESTORER, 0x7f1483ba9960}, NULL, 8) = 0
  116. exit_group(1)                           = ?
  117. [sccook@server rhel65]$

Posted by Dez at 05 Nov 2013, 09:41:46 Etc/UTC
Language: text