summaryrefslogtreecommitdiff
path: root/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* resolved,networkd: unify ResolveSupport enumLennart Poettering2016-01-051-1/+3
| | | | | | | | networkd previously knew an enum "ResolveSupport" for configuring per-interface LLMNR support, resolved had a similar enum just called "Support", with the same value and similar pasers. Unify this, call the enum ResolveSupport, and port both daemons to it.
* build-sys: fix valgrind-testsEvgeny Vereshchagin2015-12-291-1/+1
| | | | | | | | | | Fixes: ``` $ make valgrind-tests TESTS=test-acl-util GEN valgrind-tests Running test-acl-util /bin/bash: line 4: libtool: command not found ```
* build-sys: fix --disable-testsEvgeny Vereshchagin2015-12-131-0/+4
| | | | | | | | | | | Fixes: $ ./configure ... --disable-tests $ make $ sudo make check FAIL: test/udev-test.pl PASS: test/rule-syntax-check.py PASS: test/sysv-generator-test.py ...
* importd: drop dkr supportLennart Poettering2015-12-101-2/+0
| | | | | | | | The current code is not compatible with current dkr protocols anyway, and dkr has a different focus ("microservices") than nspawn anyway ("whole machine containers"), hence drop support for it, we cannot reasonably keep this up to date, and it creates the impression we'd actually care for the microservices usecase.
* Merge pull request #2086 from evverx/fix-journal-upload-installationLennart Poettering2015-12-101-5/+6
|\ | | | | build: fix systemd-journal-upload installation
| * build: fix systemd-journal-upload installationEvgeny Vereshchagin2015-12-091-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: $ ./configure ... --disable-microhttpd --enable-libcurl --enable-sysusers $ make && make install DESTDIR=$(pwd)/INST $ ls INST/usr/lib/sysusers.d/ basic.conf systemd.conf There is no a file with `systemd-journald-upload`
* | Merge pull request #2056 from evverx/expose-soft-limits-on-the-busLennart Poettering2015-12-101-0/+3
|\ \ | | | | | | Expose soft limits on the bus
| * | tests: add basic rlimits testEvgeny Vereshchagin2015-11-281-0/+3
| | |
* | | build-sys: move "dist" parts out of conditionalsEvgeny Vereshchagin2015-12-081-6/+6
| |/ |/| | | | | This is a follow-up for commit f47477332ff
* | Merge pull request #2115 from dvdhrm/rbtreeTom Gundersen2015-12-081-0/+9
|\ \ | | | | | | basic: add RB-Tree implementation
| * | basic: add RB-Tree implementationDavid Herrmann2015-12-071-0/+9
| | | | | | | | | | | | | | | | | | This adds an self-standing RB-Tree implementation to src/basic/. This will be needed for NSEC RR lookups, since we need "close lookups", which hashmaps (not even ordered-hashmaps) can give us in reasonable time.
* | | resolved: add infrastructure for mDNS related socketsDaniel Mack2015-12-081-0/+2
| | | | | | | | | | | | | | | Just hook up mDNS listeners with an empty packet dispather function, introduce a config directive, man page updates etc.
* | | Merge pull request #2104 from evverx/rlimit-util-testZbigniew Jędrzejewski-Szmek2015-12-071-1/+9
|\ \ \ | | | | | | | | tests: add test-rlimit-util
| * | | tests: disable hard errorsEvgeny Vereshchagin2015-12-071-0/+1
| | | | | | | | | | | | | | | | | | | | we don't use it https://www.gnu.org/software/automake/manual/automake.html#Scripts_002dbased-Testsuites
| * | | tests: add test-rlimit-utilEvgeny Vereshchagin2015-12-071-1/+8
| | | |
* | | | build-sys: remove dist-check-pythonEvgeny Vereshchagin2015-12-081-13/+2
| | | | | | | | | | | | | | | | | | | | added: 279419b379 obsoleted: 2c8849add4
* | | | build-sys: remove unnecessary checkEvgeny Vereshchagin2015-12-071-8/+2
| |/ / |/| | | | | | | | | | | added: 65adc982d obsoleted: 2c8849add
* | | Merge pull request #2095 from evverx/fix-distcheck-for-disable-timesyncLennart Poettering2015-12-061-7/+8
|\ \ \ | |/ / |/| | build-sys: move "dist" parts out of conditional
| * | build-sys: move "dist" parts out of conditionalEvgeny Vereshchagin2015-12-041-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: $ ./autogen.sh $ ./configure ... --disable-timesyncd $ make distcheck ... make[1]: *** No rule to make target 'src/timesync/timesyncd-gperf.gperf', needed by 'src/timesync/timesyncd-gperf.c'. Stop.
* | | resolved: add a simple trust anchor database as additional RR sourceLennart Poettering2015-12-031-0/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When doing DNSSEC lookups we need to know one or more DS or DNSKEY RRs as trust anchors to validate lookups. With this change we add a compiled-in trust anchor database, serving the root DS key as of today, retrieved from: https://data.iana.org/root-anchors/root-anchors.xml The interface is kept generic, so that additional DS or DNSKEY RRs may be served via the same interface, for example by provisioning them locally in external files to support "islands" of security. The trust anchor database becomes the fourth source of RRs we maintain, besides, the network, the local cache, and the local zone.
* | Merge pull request #1934 from martinpitt/masterTom Gundersen2015-12-031-1/+2
|\ \ | | | | | | tests: add networkd integration test
| * | tests: add networkd integration testMartin Pitt2015-11-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This uses temporary configuration in /run and temporary veth devices, and does not write anything on disk or change any system configuration; but it assumes (and checks at the beginning) that networkd is not currently running. This can be run on a normal installation, in QEMU, nspawn, or LXC. As this requires root privileges, this is not integrated into "make check".
* | | resolved: add basic DNSSEC supportLennart Poettering2015-12-021-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds most basic operation for doing DNSSEC validation on the client side. However, it does not actually add the verification logic to the resolver. Specifically, this patch only includes: - Verifying DNSKEY RRs against a DS RRs - Verifying RRSets against a combination of RRSIG and DNSKEY RRs - Matching up RRSIG RRs and DNSKEY RRs - Matching up RR keys and RRSIG RRs - Calculating the DNSSEC key tag from a DNSKEY RR All currently used DNSSEC combinations of SHA and RSA are implemented. Support for MD5 hashing and DSA or EC cyphers are not. MD5 and DSA are probably obsolete, and shouldn't be added. EC should probably be added eventually, if it actually is deployed on the Internet.
* | | test-acl-util: add new testZbigniew Jędrzejewski-Szmek2015-11-281-0/+11
| |/ |/| | | | | | | | | For now, only add_acls_for_user is tested. When run under root, it actually sets the acls. When run under non-root, it sets the acls for the user, which does nothing, but at least calls the functions.
* | util-lib: move nss-util.h from shared/ to basic/Lennart Poettering2015-11-271-2/+2
| | | | | | | | | | | | | | | | The header file defines some helpers for GLIBC NSS and doesn't include anything else but glibc headers, hence there's little reason to keep it in shared/. See: #2008
* | tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easyLennart Poettering2015-11-271-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GLIB has recently started to officially support the gcc cleanup attribute in its public API, hence let's do the same for our APIs. With this patch we'll define an xyz_unrefp() call for each public xyz_unref() call, to make it easy to use inside a __attribute__((cleanup())) expression. Then, all code is ported over to make use of this. The new calls are also documented in the man pages, with examples how to use them (well, I only added docs where the _unref() call itself already had docs, and the examples, only cover sd_bus_unrefp() and sd_event_unrefp()). This also renames sd_lldp_free() to sd_lldp_unref(), since that's how we tend to call our destructors these days. Note that this defines no public macro that wraps gcc's attribute and makes it easier to use. While I think it's our duty in the library to make our stuff easy to use, I figure it's not our duty to make gcc's own features easy to use on its own. Most likely, client code which wants to make use of this should define its own: #define _cleanup_(function) __attribute__((cleanup(function))) Or similar, to make the gcc feature easier to use. Making this logic public has the benefit that we can remove three header files whose only purpose was to define these functions internally. See #2008.
* | Merge pull request #1937 from evverx/fix-stdout-parsingLennart Poettering2015-11-271-0/+3
|\ \ | |/ |/| Fix stdout stream parsing
| * tests: add basic journal testEvgeny Vereshchagin2015-11-171-0/+3
| |
* | resolved: add a generic DnsSearchDomain conceptLennart Poettering2015-11-251-0/+2
| | | | | | | | | | | | | | | | | | | | With this change, we add a new object to resolved, "DnsSearchDomain=" which wraps a search domain. This is then used to introduce a global search domain list, in addition to the existing per-link search domain list which is reword to make use of this new object too. This is preparation for implement proper unicast DNS search domain support.
* | resolved: split out all code dealing with /etc/resolv.conf into its own .c fileLennart Poettering2015-11-251-0/+2
| | | | | | | | No functional changes.
* | Merge pull request #1996 from eworm-de/editorconfigDaniel Mack2015-11-231-0/+1
|\ \ | | | | | | add editorconfig configuration
| * | add editorconfig configurationChristian Hesse2015-11-231-0/+1
| | | | | | | | | | | | | | | We want indention with spaces, so specify in editorconfig. http://editorconfig.org/
* | | build: install bash completion for systemd-pathEvgeny Vereshchagin2015-11-211-0/+1
|/ / | | | | | | This is a follow-up for commit e50e53876fb08b6
* | Merge pull request #1962 from mbiebl/install-completion-networkctlTom Gundersen2015-11-201-0/+5
|\ \ | | | | | | build: install bash completion for networkctl
| * | build: install bash completion for networkctlMichael Biebl2015-11-191-0/+5
| | | | | | | | | | | | This is a follow-up for commit e4f246b1b512c68260581c4976d2eb01cf7febdc.
* | | build: bump version numbersv228David Herrmann2015-11-181-2/+2
| |/ |/| | | | | Prepare for v228 release and bump version numbers.
* | Merge pull request #1909 from keszybz/filetriggers-v2Lennart Poettering2015-11-171-2/+3
|\ \ | | | | | | Move daemon-reload from package %post scripts to file triggers
| * | Move daemon-reload from package %post scripts to file triggersZbigniew Jędrzejewski-Szmek2015-11-151-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This uses new functionality added in rpm 4.13. Instead of doing one daemon-reload per packages, we do just one or two (When both installing and uninstalling packages, we do two. Unfortunately this also includes the common case of upgrades. When only installing or when only installing, we do just one.) New file triggers.systemd can be built, but the contents have to be copied into the rpm spec file by hand. Using %{load} does not seem to work. It can serve as documentation.
* | | hwdb: updateKay Sievers2015-11-141-3/+3
| | |
* | | install: follow unit file symlinks in /usr, but not /etc when looking for ↵Lennart Poettering2015-11-121-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Install] data Some distributions use alias unit files via symlinks in /usr to cover for legacy service names. With this change we'll allow "systemctl enable" on such aliases. Previously, our rule was that symlinks are user configuration that "systemctl enable" + "systemctl disable" creates and removes, while unit files is where the instructions to do so are store. As a result of the rule we'd never read install information through symlinks, since that would mix enablement state with installation instructions. Now, the new rule is that only symlinks inside of /etc are configuration. Unit files, and symlinks in /usr are now valid for installation instructions. This patch is quite a rework of the whole install logic, and makes the following addional changes: - Adds a complete test "test-instal-root" that tests the install logic pretty comprehensively. - Never uses canonicalize_file_name(), because that's incompatible with operation relative to a specific root directory. - unit_file_get_state() is reworked to return a proper error, and returns the state in a call-by-ref parameter. This cleans up confusion between the enum type and errno-like errors. - The new logic puts a limit on how long to follow unit file symlinks: it will do so only for 64 steps at max. - The InstallContext object's fields are renamed to will_process and has_processed (will_install and has_installed) since they are also used for deinstallation and all kinds of other operations. - The root directory is always verified before use. - install.c is reordered to place the exported functions together. - Stricter rules are followed when traversing symlinks: the unit suffix must say identical, and it's not allowed to link between regular units and templated units. - Various modernizations - The "invalid" unit file state has been renamed to "bad", in order to avoid confusion between UNIT_FILE_INVALID and _UNIT_FILE_STATE_INVALID. Given that the state should normally not be seen and is not documented this should not be a problematic change. The new name is now documented however. Fixes #1375, #1718, #1706
* | | build-sys: fix dependenciesMichal Sekletar2015-11-121-2/+2
| | | | | | | | | | | | | | | update-man-list needs man/custom-entities.ent. Bug is nicely reproducible when running make update-man-list.
* | | test-execute: Add tests for new PassEnvironment= directiveFilipe Brandenburger2015-11-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check the base case, plus erasing the list, listing the same variable name more than once and when variables are absent from the manager execution environment. Confirmed that `sudo ./test-execute` passes and that modifying the test cases (or the values of the set variables in test-execute.c) is enough to make the test cases fail.
* | | Remove snapshot unit typeZbigniew Jędrzejewski-Szmek2015-11-101-4/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Snapshots were never useful or used for anything. Many systemd developers that I spoke to at systemd.conf2015, didn't even know they existed, so it is fairly safe to assume that this type can be deleted without harm. The fundamental problem with snapshots is that the state of the system is dynamic, devices come and go, users log in and out, timers fire... and restoring all units to some state from the past would "undo" those changes, which isn't really possible. Tested by creating a snapshot, running the new binary, and checking that the transition did not cause errors, and the snapshot is gone, and snapshots cannot be created anymore. New systemctl says: Unknown operation snapshot. Old systemctl says: Failed to create snapshot: Support for snapshots has been removed. IgnoreOnSnaphost settings are warned about and ignored: Support for option IgnoreOnSnapshot= has been removed and it is ignored http://lists.freedesktop.org/archives/systemd-devel/2015-November/034872.html
* | tests: various fixesEvgeny Vereshchagin2015-11-101-1/+1
| | | | | | | | | | | | * remove journal flushing (systemd-journal-flush.service runs journalctl --flush on boot) * use sh -c and PATH instead of @SYSTEMCTL@ expansion * remove unnecessary semicolons etc
* | sd-pppoe: dropTom Gundersen2015-11-031-13/+0
| | | | | | | | | | | | | | It is really unclear if we want to / have the resources to support this fully, so drop it for now. It can easily be brought back if a killer usecase emerges. Note that this code was never hooked up, so this does not remove any features.
* | string-util: rework memory_erase() so that it cannot be optimized awayLennart Poettering2015-11-021-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | memory_erase() so far just called memset(), which the compiler might optimize away under certain conditions if it feels there's benefit in it. C11 knows a new memset_s() call that is like memset(), but may not be optimized away. Ideally, we'd just use that call, but glibc currently does not support it. Hence, implement our own simplistic version of it. We use a GCC pragma to turn off optimization for this call, and also use the "volatile" keyword on the pointers to ensure that gcc will use the pointers as-is. According to a variety of internet sources, either one does the trick. However, there are also reports that at least the volatile thing isn't fully correct, hence let's add some snake oil and employ both techniques. https://news.ycombinator.com/item?id=4711346
* | test-path: move all related test files to a specific directoryRonny Chevalier2015-10-311-16/+18
| | | | | | | | To avoid polluting test/
* | test-execute: move all files related to a specific directoryRonny Chevalier2015-10-311-34/+34
| | | | | | | | To avoid polluting test/
* | build-sys: add missing test files to EXTRA_DISTRonny Chevalier2015-10-311-0/+4
| |
* | test-execute: add tests for IOSchedulingClassRonny Chevalier2015-10-311-0/+4
| |