summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-10-07Merge pull request #1485 from jsynacek/machine-long-filename-v5Lennart Poettering
import: hash URL in paths if they are too long
2015-10-07Merge pull request #1487 from michich/fix-env-expansionLennart Poettering
Fix env expansion
2015-10-07Merge pull request #1486 from michich/crash-handlerLennart Poettering
core: crash handler changes, CrashChangeVT parsing fix
2015-10-07man: fix typo ('and' -> 'are')Michal Schmidt
2015-10-07basic: fix env expansion for strings leading with two dollar signsMichal Schmidt
The way to escape a literal dollar sign is to write "$$". But this does not work right if it's at the beginning of the argument. Fix it.
2015-10-07core: always let the kernel reap zombies when we're about to freezeMichal Schmidt
Regardless of whether we're going to spawn a crash shell or not, let the kernel reap zombies. It's more consistent this way.
2015-10-07core: change how crash_shell and crash_reboot interactMichal Schmidt
Instead of freezing in PID1 and letting the forked child freeze or reboot when exec("/bin/sh") fails, just wait for the child's exit and then do the freeze_or_reboot in PID1 as usual. This means that when both crash_shell and crash_reboot are enabled, the system will reboot after the shell exits.
2015-10-07core: remove spurious assert in parsing CrashChangeVT=Michal Schmidt
"data" is always NULL (and unused) in config_parse_crash_chvt().
2015-10-07import: hash URL in paths if they are too longJan Synacek
https://bugzilla.redhat.com/show_bug.cgi?id=1266775
2015-10-07core: adjust error message about /etc/mtabMichal Schmidt
Since having /etc/mtab as a regular file is now a fatal error, stop mentioning irrelevant minor consequences.
2015-10-07Merge pull request #1481 from again4you/devel/smack_sysuser_#4Daniel Mack
smack: label /etc/passwd and friends as '_' smack label when --with-smack-run-label' is enabled (v3)
2015-10-07Merge pull request #1478 from steelman/analyze-without-hostnamed-fixDaniel Mack
analyze: minor fixes according to review
2015-10-07Merge pull request #1483 from reverendhomer/patch-2Daniel Mack
service: fix memory leak in service_add_fd_store()
2015-10-07Merge pull request #1482 from reverendhomer/patch-1Daniel Mack
strv: fix infinite loop in strv_extend_n()
2015-10-07service: fix memory leak in service_add_fd_store()reverendhomer
fixes Coverity #1325767
2015-10-07strv: fix infinite loop in strv_extend_n()reverendhomer
Fixes Coverity #1325768
2015-10-07smack: label /etc/passwd and friends as '_' smack label when ↵Sangjung Woo
--with-smack-run-label' is enabled systemd-sysusers.service unit creates system users and groups and it could update /etc/passwd, /etc/group, /etc/shadow and /etc/gshadow. Those files should have '_' smack label because of accessibility. However, if systemd has its own smack label using '--with-smack-run-label' configuration, systemd-sysusers process spawned by systemd(pid:1) has its parent smack label and eventually updated files also is set as its parent smack label. This patch fixes that bug by labeling updated files as '_' smack label when --with-smack-run-label' is enabled.
2015-10-07analyze: minor fixes according to reviewŁukasz Stelmach
+ use _cleanup_host_info in acquire_host_info() + revert the first strempty() to show "Linux" string in case os_pretty_name is missing.
2015-10-06Merge pull request #1475 from steelman/analyze-without-hostnamedDaniel Mack
Analyze without hostnamed [V3]
2015-10-06Merge pull request #1474 from teg/siphash24Daniel Mack
siphash: style fixes
2015-10-06analyze: replace isempty()+ternary with strempty()Łukasz Stelmach
2015-10-06analyze: do not require information from hostnamedŁukasz Stelmach
2015-10-06analyze: introduce _cleanup_host_info_Łukasz Stelmach
2015-10-06siphash24: coding-style fixesTom Gundersen
Drop custom types. Drop unnecessary macros. Fix whitespace. Add asserts.
2015-10-06siphash24: unify APITom Gundersen
Make the API of the new helpers more similar to the old wrapper. In particular we now return the hash as a byte string to avoid any endianness problems.
2015-10-06Merge pull request #1473 from michich/test-hashmapLennart Poettering
test: hashmap - increase number of entries for crippled hash test
2015-10-06Merge pull request #1469 from poettering/even-more-fixedDaniel Mack
Even more fixes
2015-10-06test: hashmap - increase number of entries for crippled hash testMichal Schmidt
The purpose of testing with the crippled hash function is to cover the otherwise very unlikely codepath in bucket_calculate_dib() where it has to fall back to recomputing the hash value. This unlikely path was not covered by test-hashmap anymore after 57217c8f "test: hashmap - cripple the hash function by truncating the input rather than the output". Restore the test coverage by increasing the number of entries in the test. The number was determined empirically by checking with lcov.
2015-10-06Merge pull request #1465 from teg/siphash24Lennart Poettering
hashmap/siphash24: refactor hash functions
2015-10-06update NEWSLennart Poettering
2015-10-06util: some comment fixes in fdname_is_valid()Lennart Poettering
2015-10-06strv: properly return ENOMEM where we should in strv_extend_n()Lennart Poettering
2015-10-06activate: validate fdname when accepting itLennart Poettering
2015-10-06man: use <function> where we refer to functionsLennart Poettering
2015-10-06NEWSTom Gundersen
2015-10-06Merge pull request #1468 from poettering/fdnamesTom Gundersen
Add support for naming fds for socket activation and more
2015-10-06Merge pull request #1467 from jacob-keller/masterTom Gundersen
networkd: document ability to disable MACAddressPolicy
2015-10-06Merge pull request #1466 from kaysievers/wipTom Gundersen
libsystemd: sd-device - translate / vs. ! in sysname
2015-10-06NEWSTom Gundersen
2015-10-06unit: give systemd-networkd.socket a better descriptionLennart Poettering
Usually we try to properly uppercase first characters in the description, do so here, too. Also, keep it close to the string used in systemd-networkd.service.
2015-10-06man: add "systemd-analyze set-log-target" to synopsis tooLennart Poettering
It's already documented in prose, now add it to the synopsis too.
2015-10-06core: add support for naming file descriptors passed using socket activationLennart Poettering
This adds support for naming file descriptors passed using socket activation. The names are passed in a new $LISTEN_FDNAMES= environment variable, that matches the existign $LISTEN_FDS= one and contains a colon-separated list of names. This also adds support for naming fds submitted to the per-service fd store using FDNAME= in the sd_notify() message. This also adds a new FileDescriptorName= setting for socket unit files to set the name for fds created by socket units. This also adds a new call sd_listen_fds_with_names(), that is similar to sd_listen_fds(), but also returns the names of the fds. systemd-activate gained the new --fdname= switch to specify a name for testing socket activation. This is based on #1247 by Maciej Wereski. Fixes #1247.
2015-10-06Merge pull request #1452 from poettering/journal-vacuumDaniel Mack
A variety of journal vacuuming improvements, plus an nspawn fix
2015-10-06core: simplify fd collection code, return number of fds as return valueLennart Poettering
Let's simplify the fd collection code a bit, and return the number of collected fds as positive integer, the way it's customary in our usual code.
2015-10-06socket: don't double close the same fd for FIFOsLennart Poettering
2015-10-06gpt-auto-generator: fix duplicate backing partition checkLennart Poettering
We shouldn't exit the loop early, otherwise our duplicate backing partition check won't work.
2015-10-05document ability to disable MACAddressPolicyJacob Keller
While it is currently possible to either not set MACAddressPolicy or set it to a value different from "persistent" or "random", it is not obvious that a user can do so. Add a policy, "none", which simply retains kernel MAC addresses (same as not filling in the policy at all) and document it so that users are aware of this setting. Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
2015-10-06libsystemd: sd-device - translate / vs. ! in sysnameKay Sievers
The kernel replaces '/' in device names with '!', we translate that back to '/' in sysname, when taking sysname as input, we should translate it back again.
2015-10-05Merge pull request #1462 from lnykryn/analyze-manpageTom Gundersen
man: LEVEL in systemd-analyze set-log level is not optional
2015-10-05Merge pull request #1406 from blaskovic/journal-remote-typoTom Gundersen
journal-remote: typo in log_error when no sources are specified [tomegun: this was a pun, but let's not do that]