Skip to content

Instantly share code, notes, and snippets.

@jay-dihenkar
Created February 19, 2018 13:41
Show Gist options
  • Save jay-dihenkar/7a12e448abd2784d1df91ad6f03dcf35 to your computer and use it in GitHub Desktop.
Save jay-dihenkar/7a12e448abd2784d1df91ad6f03dcf35 to your computer and use it in GitHub Desktop.
temp files not cleaning up
# read elf
[jay@sysmon02 ~]$ sudo readelf -d /data/jail/home/devops01/cqlsh
Dynamic section at offset 0x6df0 contains 30 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libdl.so.2]
0x0000000000000001 (NEEDED) Shared library: [libz.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000c (INIT) 0x4014e8
0x000000000000000d (FINI) 0x404bf4
0x0000000000000019 (INIT_ARRAY) 0x606dd8
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0x606de0
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x000000006ffffef5 (GNU_HASH) 0x4002d0
0x0000000000000005 (STRTAB) 0x406aa4
0x0000000000000006 (SYMTAB) 0x400300
0x000000000000000a (STRSZ) 742 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x607000
0x0000000000000002 (PLTRELSZ) 1656 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x400e70
0x0000000000000007 (RELA) 0x400dc8
0x0000000000000008 (RELASZ) 168 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x400d68
0x000000006fffffff (VERNEEDNUM) 2
0x000000006ffffff0 (VERSYM) 0x400cce
0x000000006ffffef9 (GNU_LIBLIST) 0x400a20
0x000000006ffffdf7 (GNU_LIBLISTSZ) 80 (bytes)
0x000000006ffffef8 (GNU_CONFLICT) 0x8072a8
0x000000006ffffdf6 (GNU_CONFLICTSZ) 816 (bytes)
0x0000000000000000 (NULL) 0x0
# tmp files
[jay@sysmon02 ~]$ ls -ltr /data/jail/tmp
total 0
drwx------. 5 devops01 devops01 1480 Feb 19 00:28 _MEIDJneKg
drwx------. 5 devops01 devops01 1480 Feb 19 00:30 _MEI7rpOTJ
...
...
# checking that it's no longer open
[jay@sysmon02 ~]$ sudo lsof | grep '_MEIDJneKg'
[jay@sysmon02 ~]$ # <nothing>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment