Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bandie91/libyazzy-preload

LD_PRELOAD-able libraries
https://github.com/bandie91/libyazzy-preload

ld-preload

Last synced: 4 days ago
JSON representation

LD_PRELOAD-able libraries

Awesome Lists containing this project

README

        

# LD_PRELOAD-able shared libraries for Linux

* [autossl.so](#autosslso)
* [recyclix.so](#recyclixso)

## 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=[,][,!][:[,][,!][:...]]
```

where `` is `[-]` indicating minimum and optional maximum file size which
recyclix saves; `` 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

- [libtrash](https://github.com/pete4abw/libtrash)

# issues
Please submit issues via PR to some file `.txt` or `.md` on `issues` branch.