procps/proc/libprocps.sym
Jim Warner 18e5aecd2b top: exploit msg handler override to avoid corrupt tty
Way back in November of 2011, the library was equipped
with an overridable error message handler function. It
was done expressly for a program like top which alters
the tty. But that support was withdrawn shortly after.

This was all done in the lead up to v3.3.2. That's the
release where NLS support was added and it represented
a hectic time. In hindsight, the changes went too far.

So this commit, in a minimal fashion, restores ability
to address a potential fatal library error. After all,
any properly behaving library would never unilaterally
subject a caller to a stderr message and then an exit.

[ when exposing 1 variable in libprocps.sym, 2 other ]
[ existing symbols were repositioned alphabetically. ]

Reference(s):
. generalized library memory provisions
commit 7126cc4491
. top exploit library memory provisions
commit 88087ec5a5
. library xalloc type functions made private
commit 2865ded64e
. restored prior top memory logic
commit 05f5deb97c

Signed-off-by: Jim Warner <james.warner@comcast.net>
2017-12-20 21:07:44 +11:00

71 lines
1012 B
Plaintext

LIBPROCPS_0 {
global:
Hertz;
closeproc;
cpuinfo;
dev_to_tty;
escape_command;
escape_str;
escape_strlist;
escaped_copy;
free_slabinfo;
freeproc;
get_ns_id;
get_ns_name;
get_pid_digits;
get_slabinfo;
getbtime;
getdiskstat;
getpartitions_num;
getslabinfo;
getstat;
kb_active;
kb_high_free;
kb_high_total;
kb_inactive;
kb_low_free;
kb_low_total;
kb_main_available;
kb_main_buffers;
kb_main_cached;
kb_main_free;
kb_main_shared;
kb_main_total;
kb_main_used;
kb_swap_free;
kb_swap_total;
kb_swap_used;
loadavg;
look_up_our_self;
lookup_wchan;
meminfo;
numa_init;
numa_max_node;
numa_node_of_cpu;
numa_uninit;
openproc;
page_bytes;
pretty_print_signals;
print_uptime;
procps_linux_version;
put_slabinfo;
pwcache_get_user;
readeither;
readproc;
readproctab2;
readproctab3;
readproctab;
readtask;
signal_name_to_number;
signal_number_to_name;
smp_num_cpus;
sprint_uptime;
strtosig;
tty_to_dev;
unix_print_signals;
uptime;
xalloc_err_handler;
local:
*;
};