Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/snapcore/snapcraft-preloads


https://github.com/snapcore/snapcraft-preloads

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# snapcraft-preloads
Individual libraries that can be preloaded in snaps to ensure behavior is
consistent with confinement rules.

## Available Libraries
### semaphores
Rewrite paths for `sem_open` and `sem_unlink` for them to write in the
appropriate paths available to a given snap.

### bindtextdomain
Searches for domainname in alternative paths relative to snaps or the *platform*
snap it may be using.

These are the relative-to snap paths searched for are:

- `gnome-platform/usr/share/locale`
- `gnome-platform/usr/share/locale-langpack`
- `usr/share/locale`
- `usr/share/locale-langpack`

## Building
To build all projects, just run `make` at the root of this project.

Each subdirectory can be individually built using `make -C `.

A resulting `libpreload-.so` is the output of each `Makefile` which can be
install with `make install` to its default target of `$DESTDIR/libpreload-.so`

## Using
In the given snap where it is to be used, add the library to the list of
`LD_PRELOAD` libraries (`:` separated list).