klausman / lib_users Goto Github PK
View Code? Open in Web Editor NEWChecks /proc for libraries being mapped but marked as deleted
License: GNU General Public License v2.0
Checks /proc for libraries being mapped but marked as deleted
License: GNU General Public License v2.0
The following could be shortened for user root :
`
mr-fox ~ # lib_users -s
Warning: Some files could not be read. Note that lib_users has to be run as
root to get a full list of deleted in-use libraries.
mr-fox ~ # whoami
root
`
Happens probably for things like this ?
`mr-fox ~ # lib_users -s
Warning: Some files could not be read. Note that lib_users has to be run as
root to get a full list of deleted in-use libraries.
13159 "afl-fuzz -i /home/torproject/tor-fuzz-corpora//extrainfo -o ./work/20170521-190903_a18b41cc7_extrainfo -m 50000000 -- /home/torproject/tor//src/test/fuzz/fuzz-extrainfo" uses /home/torproject/work/20170521-190903_a18b41cc7_extrainfo/queue/id:000005,orig:04a4394b5a10a3311ebee52d19cd24793860534f3a951a5369905802a293d0d2
`
ahoyhoy @klausman ,
just wanted to let you know that i added your project to pypi, for easier installation :)
cheers
When running lib_users with python 3 and warnings enabled (PYTHONWARNINGS=d) it shows a lot of warnings about unclosed files.
Examples:
/usr/lib64/python3.6/site-packages/lib_users_util/common.py:18: ResourceWarning: unclosed file <_io.TextIOWrapper name='/proc//32213/cmdline' mode='r' encoding='UTF-8'>
argv = open("%s/%s/cmdline" % (PROCFSBASE, pid)).read()
/usr/lib/python-exec/python3.6/lib_users:101: ResourceWarning: unclosed file <_io.TextIOWrapper name='/proc/32213/maps' mode='r' encoding='UTF-8'>
mapsfile = open(map_filename)
/usr/lib/python-exec/python3.6/lib_users:101: ResourceWarning: unclosed file <_io.TextIOWrapper name='/proc/32365/maps' mode='r' encoding='UTF-8'>
mapsfile = open(map_filename)
At the end there's another one:
/usr/lib/python-exec/python3.6/lib_users:130: ResourceWarning: unclosed file <_io.TextIOWrapper name='/proc/32754/maps' mode='r' encoding='UTF-8'>
main(sys.argv[1:])
I still need to write a setup.py/setup.cfg now that things aren't monolithic anymore.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.