Skip to content

canonical/anon-shm-preload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shm_open() often doesn't play nice with snaps, this library (similar to snapcraft-preload) overrides shm_open() using memfd_create() to make a shared memory fd without an associated file path.

To use

Add this as a part to your snapcraft.yaml:

parts:
    anon-shm-preload:
        source: https://github.com/MirServer/anon-shm-preload.git
        plugin: cmake

And append to your apps.command-chain entry like this:

apps:
    app-name:
      command-chain: [bin/anon-shm-preload]
      command: <app-binary>

If you're using the desktop-launch launcher from the ubuntu/snapcraft-desktop-helpers, place anon-shm-preload after desktop-launch in the app command.

About

Overrides shm_open() so the returned fd is not associated with a file subject to snap confinement

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published