Skip to content

canonical/snapcraft-preloads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <dir>.

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

Using

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published