summaryrefslogtreecommitdiffstats
path: root/man/sd_bus_process.xml (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-11-13install: drop redundant printing of unit name (#7296)Lennart Poettering1-2/+2
We already print it as part of log_syntax() internal logic, don't print it again, and in particular, don't print it at the end of log line, such a strange place. Follow-up for: 142468d89508c63262dd59335ea6d4fe82267564
2017-11-13man: remove productname which resulting trademark symbol (#7193)Shuang Liu1-1/+1
2017-11-13bpf-firewall: properly handle kernels where BPF cgroup is disabled but TRIE ↵Lennart Poettering1-1/+26
maps are enabled (#7298) So far, we assumed that kernels where TRIE was on also supported BPF/cgroup stuff. That's not a correct assumption to make, hence check for both features separately. Fixes: #7054
2017-11-13man: document the new Delegate= syntaxLennart Poettering1-7/+24
2017-11-13core: rework the Delegate= unit file setting to take a list of controller namesLennart Poettering8-22/+246
Previously it was not possible to select which controllers to enable for a unit where Delegate=yes was set, as all controllers were enabled. With this change, this is made configurable, and thus delegation units can pick specifically what they want to manage themselves, and what they don't care about.
2017-11-13core: downgrade a log message from error to warningLennart Poettering1-2/+2
Messages that do not indicate a failing operation, but where we continue operation should be at LOG_WARN, not at LOG_ERR.
2017-11-13string-util: add delete_trailing_chars() and skip_leading_chars() helpersLennart Poettering10-32/+92
And let's port over a couple of users to the new APIs.
2017-11-13conf-parser: reindent some strangely indented function headersLennart Poettering1-20/+22
2017-11-13conf-parser: turn three bool function params into a flags fieldsLennart Poettering21-91/+88
This makes things more readable and fixes some issues with incorrect flag propagation between the various flavours of config_parse().
2017-11-13conf-parser: simplify things a bit by using strextend()Lennart Poettering1-11/+7
2017-11-13fileio: make use of DEFINE_TRIVIAL_CLEANUP_FUNC where it makes senseLennart Poettering1-3/+1
2017-11-13cgroup: make use of unit_get_subtree_mask() where appropriateLennart Poettering1-4/+2
subtree_mask is own_mask | members_mask, let's make use of that to shorten a few things
2017-11-13cgroup: improve cg_mask_to_string a bit, and add tests for itLennart Poettering2-8/+50
2017-11-13cgroup-util: add brief comments clarifying which controllers are v2-only and ↵Lennart Poettering1-4/+4
which v1-only
2017-11-13update TODOLennart Poettering1-0/+6
2017-11-13namespace: set up OS hierarchy only after mounting the new root, not beforeLennart Poettering1-4/+4
Otherwise it's a pointless excercise, as we'll set up an empty directory tree that's never going to be used. Hence, let's move this around a bit, so that we do the basesystem initialization exactly when RootImage= or RootDirectory= are used, but not otherwise.
2017-11-13Fix creating independent VTI tunnel (#7303)Robin McCorkell1-1/+0
2017-11-13shared/seccomp: skip pkey_mprotect protections if the syscall is unknownZbigniew Jędrzejewski-Szmek1-0/+2
When compiling with an old kernel on architectures for which the number is not defined in missing.h, a warning is generated in missing.h. Let's just skip the protection in this case, to allow build to proceed.
2017-11-13basic/missing: add numbers for pkey_mprotectZbigniew Jędrzejewski-Szmek1-0/+30
Follow-up for b835eeb4ec1dd122b6feff2b70881265c529fcdd.
2017-11-12shared/seccomp: disallow pkey_mprotect the same as mprotect for W^X mappings ↵Zbigniew Jędrzejewski-Szmek2-2/+9
(#7295) MemoryDenyWriteExecution policy could be be bypassed by using pkey_mprotect instead of mprotect to create an executable writable mapping. The impact is mitigated by the fact that the man page says "Note that this feature is fully available on x86-64, and partially on x86", so hopefully people do not rely on it as a sole security measure. Found by Karin Hossen and Thomas Imbert from Sogeti ESEC R&D. https://bugs.launchpad.net/bugs/1725348
2017-11-12seccomp: include ARM set_tls in @default (#7297)Lennart Poettering1-0/+1
Fixes: #7135
2017-11-12networkd: improve interface rename log message a bit (#7299)Lennart Poettering1-1/+1
Let's clarify that it's not networkd that renames interfaces, but something else (for example, udev's link builtin based on .link files) This doesn't change any logic, it just rewords the message a bit, to clarify that we only log this for informational purposes, not because we execute the rename operation ourselves. Fixes: #7143
2017-11-12test-execute: change path to python3 (#7306)Yu Watanabe4-4/+4
Change python3 path from /bin/python3 to /usr/bin/python3 to make the test work on Ubuntu Xenial. Follow-up for #7178.
2017-11-12core/mount: fstype may be NULLYu Watanabe1-1/+1
2017-11-12update TODOLennart Poettering1-0/+42
2017-11-12core: sd-bus can handle NULL strings nicely, let's use itLennart Poettering1-6/+2
No need to set an empty string here, sd-bus serializes NULL as empty string anway.
2017-11-11test-execute: update test for SystemCallErrorNumber=Yu Watanabe4-4/+15
2017-11-11core: allow to specify errno number in SystemCallErrorNumber=Yu Watanabe5-21/+22
2017-11-11test: add tests for syscall:errno style in SystemCallFilter=Yu Watanabe5-9/+63
2017-11-11core: add support to specify errno in SystemCallFilter=Yu Watanabe7-36/+91
This makes each system call in SystemCallFilter= blacklist optionally takes errno name or number after a colon. The errno takes precedence over the one given by SystemCallErrorNumber=. C.f. #7173. Closes #7169.
2017-11-11test: add test for parse_errno() and parse_syscall_and_errno()Yu Watanabe1-0/+73
2017-11-11parse-util: add parse_errno() and parse_syscall_and_errno()Yu Watanabe2-0/+61
2017-11-11basic/errno-list: remove errno_max() and define ERRNO_MAX as 4095Yu Watanabe2-6/+6
In Linux kernel code, MAX_ERRNO is defined as 4095. Here, we use that value for ERRNO_MAX.
2017-11-10loginctl: rework sysfs tree dump, to honour --full and friendsLennart Poettering3-10/+25
Let's hook up the sysfs tree output with the output flags logic, already used when dumping log lines or process trees. This way we get very similar output handling for line breaking/ellipsation in all three outputs of structured data. Fixes: #7095
2017-11-10string-util: when ellipsizing to a length if (size_t) -1, become a NOPLennart Poettering1-0/+8
Let's say that (size_t) -1 (i.e. SIZE_T_MAX) is equivalent to "unbounded" ellipsation, i.e. ellipsation as NOP. In which case the relevant functions become little more than strdup()/strndup(). This is useful to simplify caller code in case we want to turn off ellipsation in certain code paths with minimal caller-side handling for this.
2017-11-10merge two lines in our get_output_flags() functionsLennart Poettering3-6/+3
loginctl, machinectl, systemctl all have very similar implementations of a get_output_flags() functions. Simplify it by merging two lines that set the same flag.
2017-11-10tree-wide: use _cleanup_(sd_bus_flush_close_unrefp) at various appropriate ↵Lennart Poettering6-13/+5
places Let's shorten the code a bit.
2017-11-10pager: cache not only number of columns but also of lines before we open pagerLennart Poettering1-2/+3
Not that we need it, but let's do this as matter of completeness.
2017-11-10loginctl: invoke sigbus_install()Lennart Poettering2-1/+5
We show journal data, hence we should install the SIGBUS handler. Similar for machinectl, where the same applies.
2017-11-10core: make "tmpfs" dependencies on swapfs a "default" dep, not an "implicit"Lennart Poettering4-27/+15
There should be a way to turn this logic of, and DefaultDependencies= appears to be the right option for that, hence let's downgrade this dependency type from "implicit" to "default, and thus honour DefaultDependencies=. This also drops mount_get_fstype() as we only have a single user needing this now. A follow-up for #7076.
2017-11-10core: when a unit template is specified in SYSTEMD_WANTS=, instantiate it ↵Lennart Poettering2-42/+54
with sysfs path This should make cases like the user's setup in #7109 a lot easier to handle, as in that case we'll do the right escaping automatically.
2017-11-10test: add test case for adding/removing dependencies via udev rulesLennart Poettering3-0/+129
2017-11-10core: remove SYSTEMD_WANTS udev property configured dependencies at the ↵Lennart Poettering1-19/+20
right moment Previously dependencies configured with SYSTEMD_WANTS would be collected on a device unit as long as it was loaded. let's fix that, and remove dependencies again when SYTEMD_WANTS changes.
2017-11-10device: Let's simplify device_add_udev_wants() a bitLennart Poettering1-4/+8
Let's drop use of one variable and make the rest more explicit.
2017-11-10core: add internal API to remove dependencies again, based on dependency maskLennart Poettering3-0/+98
let's make use of the dependency mask, and add internal API to remove dependencies ago, based on bits in the dependency mask.
2017-11-10man: extend documentation on the unit name escaping logicLennart Poettering2-23/+38
2017-11-10device: rework device_is_bound_by_mounts() a bitLennart Poettering1-7/+12
Let's log when we can't parse the udev property, and always use the most precise, correct types.
2017-11-10core: track why unit dependencies came to beLennart Poettering20-342/+593
This replaces the dependencies Set* objects by Hashmap* objects, where the key is the depending Unit, and the value is a bitmask encoding why the specific dependency was created. The bitmask contains a number of different, defined bits, that indicate why dependencies exist, for example whether they are created due to explicitly configured deps in files, by udev rules or implicitly. Note that memory usage is not increased by this change, even though we store more information, as we manage to encode the bit mask inside the value pointer each Hashmap entry contains. Why this all? When we know how a dependency came to be, we can update dependencies correctly when a configuration source changes but others are left unaltered. Specifically: 1. We can fix UDEV_WANTS dependency generation: so far we kept adding dependencies configured that way, but if a device lost such a dependency we couldn't them again as there was no scheme for removing of dependencies in place. 2. We can implement "pin-pointed" reload of unit files. If we know what dependencies were created as result of configuration in a unit file, then we know what to flush out when we want to reload it. 3. It's useful for debugging: "systemd-analyze dump" now shows this information, helping substantially with understanding how systemd's dependency tree came to be the way it came to be.
2017-11-10gpt-auto-generator: make sure "r" is always setLennart Poettering1-1/+3
2017-11-10mkosi: fix build script to use right sysvinit pathLennart Poettering1-1/+3
On Fedora /etc/init.d is a symlink to /etc/rc.d/init.d. Our build scripts default to /etc/init.d since that is the LSB default. Let's make sure the build script thus follows the symlink correctly and configures to path explicitly, since otherwise our build artifacts in $DESTDIR are incompatible with the setup we actually need for Fedora.