summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-09 22:25:32 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-09 22:25:32 +0200
commit96ede2601f27cd5fe52eed96b873bef55cd0ce23 (patch)
tree0c9812fd9196b9e2e5a186e328c25d65e2ef8ee5 /Makefile.am
parent7a69007a24cfff30158ea80665cb6c3c9d3251b0 (diff)
detect-virt: install with fs caps by default to allow unprivileged access
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 621da03260..0b3013b444 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1403,6 +1403,12 @@ systemd_detect_virt_SOURCES = \
systemd_detect_virt_LDADD = \
libsystemd-shared.la
+systemd-detect-virt-install-hook:
+ $(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt ||:
+
+INSTALL_EXEC_HOOKS += \
+ systemd-detect-virt-install-hook
+
# ------------------------------------------------------------------------------
systemd_delta_SOURCES = \
src/delta/delta.c