mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00:00
Bubblewrap is a new tool from project atomic. Its similar to the old xdg-app-helper, but even more minimal, and a bit more generic. Its designed to be easy to git submodule install, but at some point we will probably support using the system installed version too. Using bubblewraps lets us share the load of security mainainance and allows other people to use bubblewrap to do their own unprivileged sandboxes.
75 lines
2.2 KiB
PHP
75 lines
2.2 KiB
PHP
noinst_LTLIBRARIES += libxdgapp-common.la
|
|
|
|
dbus_built_sources = common/xdg-app-dbus.c common/xdg-app-dbus.h
|
|
systemd_dbus_built_sources = common/xdg-app-systemd-dbus.c common/xdg-app-systemd-dbus.h
|
|
BUILT_SOURCES += $(dbus_built_sources) $(systemd_dbus_built_sources)
|
|
|
|
$(dbus_built_sources) : data/org.freedesktop.XdgApp.xml
|
|
$(AM_V_GEN) $(GDBUS_CODEGEN) \
|
|
--interface-prefix org.freedesktop.XdgApp. \
|
|
--c-namespace XdgApp \
|
|
--generate-c-code $(builddir)/common/xdg-app-dbus \
|
|
$(srcdir)/data/org.freedesktop.XdgApp.xml \
|
|
$(NULL)
|
|
|
|
$(systemd_dbus_built_sources) : data/org.freedesktop.systemd1.xml
|
|
$(AM_V_GEN) $(GDBUS_CODEGEN) \
|
|
--interface-prefix org.freedesktop.systemd1. \
|
|
--c-namespace Systemd \
|
|
--generate-c-code $(builddir)/common/xdg-app-systemd-dbus \
|
|
$(srcdir)/data/org.freedesktop.systemd1.xml \
|
|
$(NULL)
|
|
|
|
libxdgapp_common_la_SOURCES = \
|
|
common/xdg-app-common-types.h \
|
|
common/xdg-app-dir.c \
|
|
common/xdg-app-dir.h \
|
|
common/xdg-app-run.c \
|
|
common/xdg-app-run.h \
|
|
common/xdg-app-portal-error.c \
|
|
common/xdg-app-portal-error.h \
|
|
common/xdg-app-utils.c \
|
|
common/xdg-app-utils.h \
|
|
common/xdg-app-chain-input-stream.c \
|
|
common/xdg-app-chain-input-stream.h \
|
|
common/gvdb/gvdb-reader.h \
|
|
common/gvdb/gvdb-format.h \
|
|
common/gvdb/gvdb-reader.c \
|
|
common/gvdb/gvdb-builder.h \
|
|
common/gvdb/gvdb-builder.c \
|
|
common/xdg-app-db.c \
|
|
common/xdg-app-db.h \
|
|
$(dbus_built_sources) \
|
|
$(systemd_dbus_built_sources) \
|
|
$(NULL)
|
|
|
|
libxdgapp_common_la_CFLAGS = \
|
|
$(AM_CFLAGS) \
|
|
$(BASE_CFLAGS) \
|
|
$(HIDDEN_VISIBILITY_CFLAGS) \
|
|
$(OSTREE_CFLAGS) \
|
|
$(SOUP_CFLAGS) \
|
|
$(XAUTH_CFLAGS) \
|
|
$(LIBSECCOMP_CFLAGS) \
|
|
-I$(srcdir)/dbus-proxy \
|
|
$(NULL)
|
|
libxdgapp_common_la_LIBADD = libglnx.la $(BASE_LIBS) $(OSTREE_LIBS) $(SOUP_LIBS) $(XAUTH_LIBS) $(LIBSECCOMP_LIBS)
|
|
|
|
bin_PROGRAMS += \
|
|
xdg-app-helper \
|
|
$(NULL)
|
|
|
|
xdg_app_helper_SOURCES = common/xdg-app-helper.c
|
|
xdg_app_helper_LDADD = $(LIBSECCOMP_LIBS)
|
|
xdg_app_helper_CFLAGS = $(LIBSECCOMP_CFLAGS)
|
|
|
|
install-exec-hook:
|
|
if PRIV_MODE_SETUID
|
|
$(SUDO_BIN) chown root $(DESTDIR)$(bindir)/xdg-app-helper
|
|
$(SUDO_BIN) chmod u+s $(DESTDIR)$(bindir)/xdg-app-helper
|
|
else
|
|
if PRIV_MODE_FILECAPS
|
|
$(SUDO_BIN) setcap cap_sys_admin+ep $(DESTDIR)$(bindir)/xdg-app-helper
|
|
endif
|
|
endif
|