]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - Makefile.am
man: document that too strict system call filters may affect the service manager
[thirdparty/systemd.git] / Makefile.am
index 763b16289dc78983d3c1ce0023e2baeaead51681..a707d4a899f665175dca5d1c2b4c0cd1eaeab278 100644 (file)
@@ -157,6 +157,7 @@ nodist_zshcompletion_DATA = $(nodist_zshcompletion_data)
 endif
 udevlibexec_PROGRAMS =
 gperf_gperf_sources =
+rootlib_LTLIBRARIES =
 
 in_files = $(filter %.in,$(EXTRA_DIST))
 in_in_files = $(filter %.in.in, $(in_files))
@@ -250,16 +251,6 @@ AM_CFLAGS = $(OUR_CFLAGS)
 AM_LDFLAGS = $(OUR_LDFLAGS)
 
 # ------------------------------------------------------------------------------
-define move-to-rootlibdir
-       if test "$(libdir)" != "$(rootlibdir)"; then \
-               $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
-               so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
-               rm -f $(DESTDIR)$(libdir)/$$libname && \
-               $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
-               mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
-       fi
-endef
-
 INSTALL_DIRS =
 
 SHUTDOWN_TARGET_WANTS =
@@ -384,6 +375,7 @@ bin_PROGRAMS = \
        systemd-delta \
        systemd-analyze \
        systemd-run \
+       systemd-mount \
        systemd-stdio-bridge \
        systemd-path
 
@@ -501,7 +493,6 @@ dist_systemunit_DATA = \
        units/swap.target \
        units/slices.target \
        units/system.slice \
-       units/x-.slice \
        units/systemd-initctl.socket \
        units/syslog.socket \
        units/dev-hugepages.mount \
@@ -532,7 +523,6 @@ dist_systemunit_DATA_busnames += \
 nodist_systemunit_DATA = \
        units/getty@.service \
        units/serial-getty@.service \
-       units/console-shell.service \
        units/console-getty.service \
        units/container-getty@.service \
        units/systemd-initctl.service \
@@ -575,7 +565,16 @@ dist_userunit_DATA = \
        units/user/default.target \
        units/user/exit.target \
        units/user/graphical-session.target \
-       units/user/graphical-session-pre.target
+       units/user/graphical-session-pre.target \
+       units/user/bluetooth.target \
+       units/user/busnames.target \
+       units/user/paths.target \
+       units/user/printer.target \
+       units/user/shutdown.target \
+       units/user/smartcard.target \
+       units/user/sockets.target \
+       units/user/sound.target \
+       units/user/timers.target
 
 nodist_userunit_DATA = \
        units/user/systemd-exit.service
@@ -586,7 +585,6 @@ dist_systempreset_DATA = \
 EXTRA_DIST += \
        units/getty@.service.m4 \
        units/serial-getty@.service.m4 \
-       units/console-shell.service.m4.in \
        units/console-getty.service.m4.in \
        units/container-getty@.service.m4.in \
        units/rescue.service.in \
@@ -634,16 +632,9 @@ EXTRA_DIST += \
        units/rc-local.service.in \
        units/halt-local.service.in
 
-# automake is broken and can't handle files with a dash in front
-# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
-units-install-hook:
-       mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
-
-units-uninstall-hook:
-       rm -f $(DESTDIR)/$(systemunitdir)/-.slice
-
-INSTALL_DATA_HOOKS += units-install-hook
-UNINSTALL_DATA_HOOKS += units-uninstall-hook
+GENERAL_ALIASES += \
+       $(systemunitdir)/reboot.target $(pkgsysconfdir)/system/ctrl-alt-del.target \
+       $(systemunitdir)/machines.target $(pkgsysconfdir)/system/multi-user.target.wants/machines.target
 
 dist_doc_DATA = \
        README \
@@ -1272,8 +1263,8 @@ libcore_la_SOURCES = \
        src/core/audit-fd.h \
        src/core/show-status.c \
        src/core/show-status.h \
-       src/core/failure-action.c \
-       src/core/failure-action.h
+       src/core/emergency-action.c \
+       src/core/emergency-action.h
 
 nodist_libcore_la_SOURCES = \
        src/core/load-fragment-gperf.c \
@@ -1567,6 +1558,11 @@ tests += \
        test-acl-util
 endif
 
+if HAVE_SECCOMP
+tests += \
+       test-seccomp
+endif
+
 EXTRA_DIST += \
        test/a.service \
        test/basic.target \
@@ -1624,15 +1620,33 @@ EXTRA_DIST += \
        test/test-execute/exec-passenvironment.service \
        test/test-execute/exec-group.service \
        test/test-execute/exec-group-nfsnobody.service \
+       test/test-execute/exec-supplementarygroups.service \
+       test/test-execute/exec-supplementarygroups-single-group.service \
+       test/test-execute/exec-supplementarygroups-single-group-user.service \
+       test/test-execute/exec-supplementarygroups-multiple-groups-default-group-user.service \
+       test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service \
+       test/test-execute/exec-supplementarygroups-multiple-groups-withuid.service \
        test/test-execute/exec-ignoresigpipe-no.service \
        test/test-execute/exec-ignoresigpipe-yes.service \
        test/test-execute/exec-personality-x86-64.service \
        test/test-execute/exec-personality-x86.service \
        test/test-execute/exec-personality-s390.service \
+       test/test-execute/exec-personality-ppc64.service \
+       test/test-execute/exec-personality-ppc64le.service \
+       test/test-execute/exec-personality-aarch64.service \
        test/test-execute/exec-privatedevices-no.service \
        test/test-execute/exec-privatedevices-yes.service \
+       test/test-execute/exec-privatedevices-no-capability-mknod.service \
+       test/test-execute/exec-privatedevices-yes-capability-mknod.service \
+       test/test-execute/exec-protectkernelmodules-no-capabilities.service \
+       test/test-execute/exec-protectkernelmodules-yes-capabilities.service \
+       test/test-execute/exec-protectkernelmodules-yes-mount-propagation.service \
        test/test-execute/exec-privatetmp-no.service \
        test/test-execute/exec-privatetmp-yes.service \
+       test/test-execute/exec-readonlypaths.service \
+       test/test-execute/exec-readonlypaths-mount-propagation.service \
+       test/test-execute/exec-readwritepaths-mount-propagation.service \
+       test/test-execute/exec-inaccessiblepaths-mount-propagation.service \
        test/test-execute/exec-spec-interpolation.service \
        test/test-execute/exec-systemcallerrornumber.service \
        test/test-execute/exec-systemcallfilter-failing2.service \
@@ -2017,6 +2031,12 @@ test_acl_util_SOURCES = \
 test_acl_util_LDADD = \
        libsystemd-shared.la
 
+test_seccomp_SOURCES = \
+       src/test/test-seccomp.c
+
+test_seccomp_LDADD = \
+       libsystemd-shared.la
+
 test_namespace_LDADD = \
        libcore.la
 
@@ -3129,6 +3149,13 @@ systemd_run_SOURCES = \
 systemd_run_LDADD = \
        libsystemd-shared.la
 
+# ------------------------------------------------------------------------------
+systemd_mount_SOURCES = \
+       src/mount/mount-tool.c
+
+systemd_mount_LDADD = \
+       libsystemd-shared.la
+
 # ------------------------------------------------------------------------------
 systemd_stdio_bridge_SOURCES = \
        src/stdio-bridge/stdio-bridge.c
@@ -3259,15 +3286,6 @@ libsystemd_la_LIBADD = \
        libbasic.la \
        libsystemd-journal-internal.la
 
-libsystemd-install-hook:
-       libname=libsystemd.so && $(move-to-rootlibdir)
-
-libsystemd-uninstall-hook:
-       rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
-
-INSTALL_EXEC_HOOKS += libsystemd-install-hook
-UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
-
 pkgconfiglib_DATA += \
        src/libsystemd/libsystemd.pc
 
@@ -3280,7 +3298,7 @@ pkginclude_HEADERS += \
        src/systemd/sd-id128.h \
        src/systemd/sd-daemon.h
 
-lib_LTLIBRARIES += \
+rootlib_LTLIBRARIES += \
        libsystemd.la
 
 tests += \
@@ -3299,6 +3317,7 @@ tests += \
        test-bus-error \
        test-bus-creds \
        test-bus-gvariant \
+       test-bus-track \
        test-event \
        test-netlink \
        test-local-addresses \
@@ -3342,6 +3361,16 @@ test_bus_cleanup_CFLAGS = \
 test_bus_cleanup_LDADD = \
        libsystemd-shared.la
 
+test_bus_track_SOURCES = \
+       src/libsystemd/sd-bus/test-bus-track.c
+
+test_bus_track_CFLAGS = \
+       $(AM_CFLAGS) \
+       $(SECCOMP_CFLAGS)
+
+test_bus_track_LDADD = \
+       libsystemd-shared.la
+
 test_bus_server_SOURCES = \
        src/libsystemd/sd-bus/test-bus-server.c
 
@@ -3601,7 +3630,7 @@ tests += \
 include_HEADERS += \
        src/libudev/libudev.h
 
-lib_LTLIBRARIES += \
+rootlib_LTLIBRARIES += \
        libudev.la
 
 libudev_la_SOURCES =\
@@ -3633,16 +3662,6 @@ pkgconfiglib_DATA += \
 EXTRA_DIST += \
        src/libudev/libudev.pc.in
 
-# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
-libudev-install-hook:
-       libname=libudev.so && $(move-to-rootlibdir)
-
-libudev-uninstall-hook:
-       rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
-
-INSTALL_EXEC_HOOKS += libudev-install-hook
-UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
-
 # ------------------------------------------------------------------------------
 noinst_LTLIBRARIES += \
        libudev-internal.la
@@ -3869,7 +3888,8 @@ TESTS += \
 
 if HAVE_PYTHON
 TESTS += \
-       test/rule-syntax-check.py
+       test/rule-syntax-check.py \
+       hwdb/parse_hwdb.py
 
 if HAVE_SYSV_COMPAT
 TESTS += \
@@ -3921,7 +3941,8 @@ EXTRA_DIST += \
        test/udev-test.pl \
        test/rule-syntax-check.py \
        test/sysv-generator-test.py \
-       test/mocks/fsck
+       test/mocks/fsck \
+       hwdb/parse_hwdb.py
 
 # ------------------------------------------------------------------------------
 ata_id_SOURCES = \
@@ -5019,7 +5040,7 @@ libnss_systemd_la_LIBADD = \
        libsystemd-internal.la \
        libbasic.la
 
-lib_LTLIBRARIES += \
+rootlib_LTLIBRARIES += \
        libnss_systemd.la
 
 # ------------------------------------------------------------------------------
@@ -5041,7 +5062,7 @@ libnss_myhostname_la_LIBADD = \
        libsystemd-internal.la \
        libbasic.la
 
-lib_LTLIBRARIES += \
+rootlib_LTLIBRARIES += \
        libnss_myhostname.la
 endif
 
@@ -5140,7 +5161,7 @@ libnss_mymachines_la_LIBADD = \
        libsystemd-internal.la \
        libbasic.la
 
-lib_LTLIBRARIES += \
+rootlib_LTLIBRARIES += \
        libnss_mymachines.la
 
 endif
@@ -5439,7 +5460,7 @@ libnss_resolve_la_LIBADD = \
        libbasic.la \
         -ldl
 
-lib_LTLIBRARIES += \
+rootlib_LTLIBRARIES += \
        libnss_resolve.la
 
 systemd_resolve_SOURCES = \
@@ -5613,6 +5634,8 @@ libnetworkd_core_la_SOURCES = \
        src/network/networkd-netdev-bond.c \
        src/network/networkd-netdev-bridge.h \
        src/network/networkd-netdev-bridge.c \
+       src/network/networkd-netdev-vcan.h \
+       src/network/networkd-netdev-vcan.c \
        src/network/networkd-link-bus.c \
        src/network/networkd-ipv4ll.c \
        src/network/networkd-dhcp4.c \
@@ -5887,8 +5910,10 @@ pam_systemd_la_LIBADD = \
 pamlib_LTLIBRARIES = \
        pam_systemd.la
 
+if ENABLE_PAM_CONFIG
 dist_pamconf_DATA = \
        src/login/systemd-user
+endif
 
 EXTRA_DIST += \
        src/login/systemd-user.m4
@@ -6010,6 +6035,9 @@ EXTRA_DIST += \
        test/TEST-11-ISSUE-3166/test.sh \
        test/TEST-12-ISSUE-3171/Makefile \
        test/TEST-12-ISSUE-3171/test.sh \
+       test/TEST-13-NSPAWN-SMOKE/Makefile \
+       test/TEST-13-NSPAWN-SMOKE/create-busybox-container \
+       test/TEST-13-NSPAWN-SMOKE/test.sh \
        test/test-functions
 
 EXTRA_DIST += \
@@ -6287,19 +6315,6 @@ SYSTEM_UNIT_ALIASES += \
        reboot.target ctrl-alt-del.target \
        getty@.service autovt@.service
 
-USER_UNIT_ALIASES += \
-       $(systemunitdir)/shutdown.target shutdown.target \
-       $(systemunitdir)/sockets.target sockets.target \
-       $(systemunitdir)/timers.target timers.target \
-       $(systemunitdir)/paths.target paths.target \
-       $(systemunitdir)/bluetooth.target bluetooth.target \
-       $(systemunitdir)/printer.target printer.target \
-       $(systemunitdir)/sound.target sound.target \
-       $(systemunitdir)/smartcard.target smartcard.target
-
-USER_UNIT_ALIASES += \
-       $(systemunitdir)/busnames.target busnames.target
-
 GENERAL_ALIASES += \
        $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
        $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
@@ -6552,7 +6567,7 @@ print-%:
        @echo $($*)
 
 git-contrib:
-       @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
+       @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | sed 's/ / /g' | awk '{ print $$0 "," }' | sort -u
 
 EXTRA_DIST += \
         tools/gdb-sd_dump_hashmaps.py