https://github.com/canonical/snapcraft-preloads
https://github.com/canonical/snapcraft-preloads
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/canonical/snapcraft-preloads
- Owner: canonical
- License: gpl-3.0
- Created: 2020-06-30T14:17:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-31T20:53:26.000Z (over 5 years ago)
- Last Synced: 2025-04-25T14:12:43.328Z (9 months ago)
- Language: C
- Size: 24.4 KB
- Stars: 1
- Watchers: 10
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).