summaryrefslogtreecommitdiffstats
path: root/man/file-hierarchy.xml (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-07-16systemctl: allow 'edit' to work on templates againZbigniew Jędrzejewski-Szmek1-10/+43
This got broken in 9d9dd746d461e4524fb3644b20b8138448d666f2, because a template is not a valid unit, so the check for being masked failed. Avoid this by handling templates specially. Fixes #9554. Also, this improves 'cat' with masked units: (before) $ systemctl cat foofoofoo@.service Failed to derive unit name prefix from unit name: Invalid argument Failed to derive unit name prefix from unit name: Invalid argument Failed to derive unit name prefix from unit name: Invalid argument Failed to derive unit name prefix from unit name: Invalid argument Failed to derive unit name prefix from unit name: Invalid argument Failed to derive unit name prefix from unit name: Invalid argument Failed to derive unit name prefix from unit name: Invalid argument Failed to derive unit name prefix from unit name: Invalid argument Failed to derive unit name prefix from unit name: Invalid argument Failed to derive unit name prefix from unit name: Invalid argument (after) $ build/systemctl cat foofoofoo@.service In check_triggering_units(), the call to unit_is_masked() is replaced with an open-coded check. This is a bit unfortunate, but unit_is_masked() now requires LookupPaths to be initialized, which we don't have or need in this case, so it seems easiest to just accept this tiny code duplication.
2018-07-16sd-bus: make BUS_DEFAULT_TIMEOUT configurableYu Watanabe6-8/+58
This adds sd_bus_{get,set}_method_call_timeout(). If the timeout is not set or set to 0, then the timeout value is parsed from $SYSTEMD_BUS_TIMEOUT= environment variable. If the environment variable is not set, then built-in timeout is used.
2018-07-16tree-wide: use "polkit" to refer to PolicyKit/polkitZbigniew Jędrzejewski-Szmek6-47/+45
Back in 2012 the project was renamed, see the release notes for v 0.105 [https://cgit.freedesktop.org/polkit/tree/NEWS#n754]. Let's update our documentation and comments to do the same. Referring to PolicyKit is confusing to users because at the time the polkit api changed too, and we support the new version. I updated NEWS too, since all the references to PolicyKit there were added after the rename. "PolicyKit" is unchanged in various URLs and method call names.
2018-07-16meson: allow systemd.directives and .index to be built if -Dman=falseZbigniew Jędrzejewski-Szmek1-2/+2
See 559d215b6733bb46533a52080522a7feca183aa8 for justification.
2018-07-16man: add sd_bus_set_description(3)Zbigniew Jędrzejewski-Szmek3-0/+197
2018-07-16man: add sd_bus_reply_method_error(3)Zbigniew Jędrzejewski-Szmek3-0/+168
2018-07-16man: add sd_bus_message_copy(3)Zbigniew Jędrzejewski-Szmek3-0/+117
2018-07-16man: add sd_bus_message_new_error(3)Zbigniew Jędrzejewski-Szmek3-0/+197
2018-07-16build-sys: Detect whether struct statx is defined in sys/stat.hFilipe Brandenburger3-2/+9
Starting with glibc 2.27.9000-36.fc29, include file sys/stat.h will have a definition for struct statx, in which case include file linux/stat.h should be avoided, in order to prevent a duplicate definition. In file included from ../src/basic/missing.h:18, from ../src/basic/util.h:28, from ../src/basic/hashmap.h:10, from ../src/shared/bus-util.h:12, from ../src/libsystemd/sd-bus/bus-creds.c:11: /usr/include/linux/stat.h:99:8: error: redefinition of ‘struct statx’ struct statx { ^~~~~ In file included from /usr/include/sys/stat.h:446, from ../src/basic/util.h:19, from ../src/basic/hashmap.h:10, from ../src/shared/bus-util.h:12, from ../src/libsystemd/sd-bus/bus-creds.c:11: /usr/include/bits/statx.h:36:8: note: originally defined here struct statx ^~~~~ Extend our meson.build to look for struct statx when only sys/stat.h is included and, in that case, do not include linux/stat.h anymore. Tested that systemd builds correctly when using a glibc version that includes a definition for struct statx. glibc Fedora RPM update: https://src.fedoraproject.org/rpms/glibc/c/28cb5d31fc1e5887912283c889689c47076278ae glibc upstream commit: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=fd70af45528d59a00eb3190ef6706cb299488fcd
2018-07-16login: use parse_uid() when unmounting user runtime directoryYu Watanabe1-21/+36
When unmounting user runtime directory, only UID is necessary, and the corresponding user may not exist anymore. This makes first try to parse the input by parse_uid(), and only if it fails, prase the input by get_user_creds(). Fixes #9541.
2018-07-13sd-bus: unref slot->match_callback.install_slot when slot is disconnectedYu Watanabe1-1/+4
When a slot is disconnected, then slot->match_callback.install_slot is also disconnected. So, bus_slot_disconnect() removes the install_slot from the list of slots in bus, although it is a floating object. This makes install_slot unreffed from bus when it is disconnected. Fixes #9505 and #9510.
2018-07-13machinectl: fix verbosity of import-raw or friendsYu Watanabe1-1/+1
This partially reverts 31d99bd172b17179ec24f63fc8ca4d6530dc98ae. Fixes #9527.
2018-07-13pull: initialize libgcrypt before calling any functions provided by libgcryptYu Watanabe1-0/+3
This fixes the following warning: ``` systemd-pull[4065]: Libgcrypt warning: missing initialization - please fix the application ```
2018-07-13bls: Allow options to be used more than onceJan Janssen1-1/+1
This just documents what we already allow anyways.
2018-07-13doc: list PrivateMounts= in TRANSIENT-SETTINGS.mdYu Watanabe1-0/+1
Follow-up for #9153.
2018-07-13[man] minor systemd.target manual updateMichal Soltys1-1/+2
Target units gain both Conflicts= and Before= against shutdown.target (not only Conflicts=).
2018-07-13hwdb: deprecate the POINTINGSTICK_CONST_ACCEL propertyPeter Hutterer1-1/+6
The only known consumer of this property was libinput but it stopped using this property since libinput 1.9 (released Oct 2017). This property is arguably not one that should be in systemd anyway - it's not a hardware-specific property but rather a factor of the acceleration method employed by whatever userspace handles the events. Deprecate it but leave the values in place for backwards compatibility.
2018-07-12core: add MemoryMinTejun Heo9-5/+48
The kernel added support for a new cgroup memory controller knob memory.min in bf8d5d52ffe8 ("memcg: introduce memory.min") which was merged during v4.18 merge window. Add MemoryMin to support memory.min.
2018-07-12hwdb: remove stray 'i' in hwdb match string for the HP Spectre (#9571)Peter Hutterer1-1/+1
Looks like vim detritus, introduced in f8de7c1875841f277d0b0e46d4a27d4e2b893d1f
2018-07-12resolve: use structured initializerYu Watanabe1-18/+36
This fixes the following valgrind warning: ``` Syscall param sendmsg(msg.msg_name) points to uninitialised byte(s) at 0x6189CC1: sendmsg (in /usr/lib64/libpthread-2.27.so) by 0x153082: dns_stream_writev (resolved-dns-stream.c:235) by 0x153343: dns_stream_tls_writev (resolved-dns-stream.c:299) by 0x5B30343: ??? (in /usr/lib64/libgnutls.so.30.20.2) by 0x5B3158F: ??? (in /usr/lib64/libgnutls.so.30.20.2) by 0x5B33190: ??? (in /usr/lib64/libgnutls.so.30.20.2) by 0x5B36307: ??? (in /usr/lib64/libgnutls.so.30.20.2) by 0x5B37D47: gnutls_handshake (in /usr/lib64/libgnutls.so.30.20.2) by 0x154591: dns_stream_connect_tls (resolved-dns-stream.c:596) by 0x13A889: dns_transaction_emit_tcp (resolved-dns-transaction.c:676) by 0x13D901: dns_transaction_go (resolved-dns-transaction.c:1761) by 0x1330C8: dns_query_candidate_go (resolved-dns-query.c:156) Address 0xa9ac268 is 312 bytes inside a block of size 592 alloc'd at 0x4C30B06: calloc (vg_replace_malloc.c:711) by 0x1541F8: dns_stream_new (resolved-dns-stream.c:545) by 0x13A662: dns_transaction_emit_tcp (resolved-dns-transaction.c:642) by 0x13D901: dns_transaction_go (resolved-dns-transaction.c:1761) by 0x1330C8: dns_query_candidate_go (resolved-dns-query.c:156) by 0x134E16: dns_query_go (resolved-dns-query.c:757) by 0x11F3FB: bus_method_resolve_hostname (resolved-bus.c:353) by 0x4F947A7: method_callbacks_run (bus-objects.c:402) by 0x4F97266: object_find_and_run (bus-objects.c:1260) by 0x4F978B1: bus_process_object (bus-objects.c:1376) by 0x4FAF82C: process_message (sd-bus.c:2661) by 0x4FAFA1B: process_running (sd-bus.c:2703) ```
2018-07-12resolve: unref stream after completion processesYu Watanabe1-1/+2
Fixes #9511.
2018-07-11core: Fix grammar in error messageSven Joachim1-1/+1
2018-07-11meson: drop redundant messagesYu Watanabe2-4/+0
2018-07-10rules: Add by-id symlinks for persistent memoryKeith Busch1-0/+3
This patch adds a by-id symlink to persistent memory namespace if it exports a uuid attribute. The result looks like the following example: # ls -l /dev/disk/by-id/* lrwxrwxrwx 1 root root 13 Jul 9 15:24 pmem-206dcdfe-69b7-4e86-a01b-f540621ce62e -> ../../pmem1.2 lrwxrwxrwx 1 root root 13 Jul 9 15:24 pmem-73840bf1-4e74-4ba4-a9c8-8248934c07c8 -> ../../pmem1.1 lrwxrwxrwx 1 root root 13 Jul 9 15:24 pmem-8137bdfd-3c4d-4b26-b326-21da3d4cd4e5 -> ../../pmem1.4 lrwxrwxrwx 1 root root 13 Jul 9 15:24 pmem-f43d1b6e-3300-46cb-8afc-06d66a7c16f6 -> ../../pmem1.3 Signed-off-by: Keith Busch <keith.busch@intel.com>
2018-07-09test: Fix networkd test for an already running serviceMartin Pitt1-4/+34
Mount tmpfses over the networkd and resolved config and state directories, and stop the services beforehand. This ensures that the test does not mess with an existing networkd/resolved setup. At least for ethernet setups, this does not sever existing links, so is good enough for the CI cases we are interested in (QEMU and LXC). Relax the skip check to only skip the test when trying to run this on real iron, but start running it in virtual machines now. This allows us to run the test on Ubuntu 18.04 LTS in CI, which uses both services by default.
2018-07-09test: Reset systemd-resolved.service in networkd testMartin Pitt1-2/+2
Like s-networkd.service itself, it can happen that s-resolved.service runs into restart limits. Don't enforce a successful call, as on machines without resolved the unit might not be loaded.
2018-07-09man: convert old compile option to meson optionYu Watanabe1-2/+2
2018-07-09hwdb: add accelerometer mount matrix for Umax VisionBook 10Wi PlusMartin Sobotka1-0/+6
2018-07-08sd-bus(3): synchronize the list with realityZbigniew Jędrzejewski-Szmek1-28/+32
Use <literallayout> to keep each reference on a separate line. With all the pages jumbled together into a paragraph, it is quite hard to find anything in that list. Also add the missing pages to the list. And remove the nonexistent ones — not much point in advertisting pages that haven't been written yet.
2018-07-07network/link: Fix logic error in matching devices by MACDave Reisner1-1/+1
Prior to this commit, a .link file with a [Match] section containing MACAddress= would match any device without a MAC. This restores the matching logic prior to e90d037.
2018-07-06hwdb: Add accelerometer orientation quirk for Asus TP200SAfaizalluthfi1-0/+3
2018-07-06systemctl: make variable which stores environment variable constantYu Watanabe1-5/+3
2018-07-06pager: split $PAGER or $SYSTEMD_PAGER and use execvp()Yu Watanabe1-7/+12
This makes pager_open() correctly handle e.g. PAGER=' ' or PAGER=' cat '.
2018-07-06strv: make strv_split() accept empty stringYu Watanabe2-3/+27
2018-07-06show-status: add newline to ephemeral messagesTomsod M2-5/+10
Fixes #6712. The newline is later reversed, naturally.
2018-07-05man: Mention that paths in unit files must be fully normalized.Alexander Kurtz1-0/+3
Related to issues #9107 and #9498 and PRs #9149 and #9157.
2018-07-03tests: redirect ASAN reports on journald to a fileEvgeny Vereshchagin1-0/+6
Otherwise, they will end up in /dev/null.
2018-07-03tests: add a wrapper for when systemd is built with ASANEvgeny Vereshchagin1-1/+34
2018-07-03rpm: emit warning when macro with typo is usedZbigniew Jędrzejewski-Szmek1-1/+1
Follow-up for a6bb550458. Suggested by @ignatenkobrain. $ rpmbuild --eval %_environmentdir /usr/lib/environment.d $ rpmbuild --eval %_environmnentdir warning: Use %_environmentdir instead /usr/lib/environment.d
2018-07-03conf-parser,login: logs description of error in parsing sizeYu Watanabe2-6/+12
2018-07-03man: add missing <option> tagLucas Werkmeister1-1/+1
One mention of --user was missing the surrounding <option> tag, making the table look inconsistent (though the inconsistency is less obvious after the reordering in 709f4c472c, since the four specifiers mentioning the --user option are no longer immediately adjacent).
2018-07-03test: fix networkd-test.py rate limiting and dynamic userMartin Pitt1-0/+8
- Reset systemd-networkd.service before each test run, to avoid running into restart limits. - Our networkd-test-router.service unit needs to run as root and thus can't use `User=`; but networkd still insists on the `systemd-network` system user to exist, so create it.
2018-07-03man: document sd_bus_read(), add more about sd_bus_read_basic()Zbigniew Jędrzejewski-Szmek4-10/+385
2018-07-03seccomp: add swapcontext into @process for ppc32Lion Yang1-0/+1
There are some modern programming languages use userspace context switches to implement coroutine features. PowerPC (32-bit) needs syscall "swapcontext" to get contexts or switch between contexts, which is special. Adding this rule should fix #9485.
2018-07-03tree-wide: add a space after (void)Yu Watanabe4-9/+9
2018-07-03resolved: fix typo in log messageZbigniew Jędrzejewski-Szmek1-2/+2
Follow-up for cc7d50a5714bc810af51b0c55be12b4f55acc089.
2018-07-03man: use the same markup for "ap" everywhereZbigniew Jędrzejewski-Szmek2-8/+7
2018-07-03tree-wide: drop some leftover header for Lennart PoetteringZbigniew Jędrzejewski-Szmek2-4/+1
Follow-up for 0c697941389b7379c4471bc0a067ede02814bc57.
2018-07-03journald: drop copyright headers for Sebastian ThorarensenZbigniew Jędrzejewski-Szmek2-6/+0
For #9320.
2018-07-03man: drop mode line in file headersZbigniew Jędrzejewski-Szmek102-102/+102
This is already included in .dir-locals, so we don't need it in the files themselves.