descriptionuseful LD_PRELOAD-able libraries for Linux
repository URLgit://git.dyn.uucp.hu/sysop/ld-preload-libs/
ownerBLH6T4@uucp.hu
last changeSun, 11 Aug 2024 14:13:17 +0000 (11 16:13 +0200)
last refreshThu, 12 Sep 2024 14:02:40 +0000 (12 16:02 +0200)
content tags
add:
README.md

LD_PRELOAD-able shared libraries for Linux

autossl.so

autossl.so upgrades plaintext network sockets to SSL/TLS transparently for TCP client applications with the help of external program. See description and usage docs in the source file.

recyclix.so

recyclix.so is an LD_PRELOAD-able shared library intercepting file deletions and moving files to recycle bin (trash can) folder.

It can be configured via environment variable RECYCLER, whiches format is:

RECYCLER=<DIR>[,<SIZE_LIMIT>][,!<EXCLUDE_PATTERN>][:<DIR>[,<SIZE_LIMIT>][,!<EXCLUDE_PATTERN>][:<DIR>...]]

where <SIZE_LIMIT> is <N><UNIT>[-<N><UNIT>] indicating minimum and optional maximum file size which recyclix saves; <EXCLUDE_PATTERN> is a regexp pattern which if matches to the file name, the file is ignored. Multiple recycle bin definitions are supported, ideally one for each filesystem. Examples:

RECYCLER='~/.Recycler,10M'
RECYCLER='~/Trash,100B-1G,!(\.bak|~)$'
RECYCLER='~/.Recycler,1k:/mnt/sdb/home/johndoe/.Recycler,!\.bak$,1k-100M:/var/deleted-files,!(\.bak|-)$'

Behavior and limitations

It saves about-to-be deleted files in that recycle bin which is on the same filesystem (partition) as the file. The file is not gonna be saved if there is no recycle bin on the filesystem according to $RECYCLER. It keeps the file's path relative to the filesystem's mountpoint in the recycle bin too, so /home/johndoe/src/xyz/file goes to /home/johndoe/.Recycler/johndoe/src/xyz/file provided that /home is the mountpoint. It overwrites the file in the recycle bin if it already exists.

The following flow chart illustrates its inner working:

Similar projects

issues

Please submit issues via PR to some file <TITLE>.txt or <TITLE>.md on issues branch.

shortlog
2024-08-11 Andreas Hrubakswap back socket address when reply by sendmsgmaster
2024-08-10 Andreas Hrubakimplement ip 4/6 addr/port extract, lookup, update
2024-07-19 Andreas Hrubak__posix_spawn
2024-07-19 Andreas Hrubaktododontcallshell
2024-07-19 Andreas Hrubakfix BUILD_ARGV
2024-07-19 Andreas HrubakWIP
2024-07-18 Andreas Hrubakadd .gitmirrors
2024-05-07 Andreas Hrubakadd forcebindiface.c
2023-10-19 Andreas Hrubakautossl POD
2023-10-19 Andreas Hrubakautossl AUTOSSL_SILENT option and improve documentation
2022-04-29 Andreas Hrubakmakefile...
2022-04-29 Andreas Hrubakxopenhook captures XvListImageFormats as well because...
2022-04-20 Andreas Hrubakfootgun was shot
2022-04-20 Andreas Hrubaknew libs: nosleep - to disable artifical delays, xopenh...
2021-11-10 Andreas Hrubakadd autossl helper script and a connector script
2021-08-25 Andreas Hrubakadd missing linked library
...
heads
3 months ago master
4 months ago dontcallshell
4 months ago repo-mgmt
3 years ago connredir
4 years ago issues
4 years ago enhance-lib-pathrewrite
5 years ago libopenhlp