Permalink
Commits on Nov 14, 2018
  1. Merge pull request #10753 from keszybz/pager-no-interrupt

    poettering committed Nov 14, 2018
    Add mode in journalctl where ^C is handled by the pager
  2. core: drop dbus queue recursion check

    poettering committed Nov 14, 2018
    We don't dispatch the queue recursively anymore, hence let's simplify
    things a bit.
    
    As pointed out by @fbuihuu:
    
    #10763 (comment)
  3. man: use <keycombo> more

    keszybz committed Nov 14, 2018
  4. basic/pager: ignore ^C when piping to less and K is not set

    keszybz committed Nov 11, 2018
    Normally, we want to immediately quit on ^C. But when we are running under
    less, people may set SYSTEMD_LESS without K, in which case they can use ^C to
    communicate with less, and e.g. start and stop following input.
    
    Fixes #6405.
  5. Move LONG_LINE_MAX definition to fileio.h

    keszybz committed Nov 11, 2018
    All users of the macro (except for one, in serialize.c), use the macro in
    connection with read_line(), so they must include fileio.h.  Let's not play
    libc games and require multiple header file to be included for the most common
    use of a function.
    
    The removal of def.h includes is not exact. I mostly went over the commits that
    switch over to use read_line() and add def.h at the same time and reverted the
    addition of def.h in those files.
  6. basic/pager: convert the pager options to a flags argument

    keszybz committed Nov 11, 2018
    Pretty much everything uses just the first argument, and this doesn't make this
    common pattern more complicated, but makes it simpler to pass multiple options.
  7. Merge pull request #10759 from keszybz/udevd-more-configuration

    poettering committed Nov 14, 2018
    Udevd more configuration options
  8. travis: use double the normal timeout in the ASan & UBSan stage

    evverx authored and poettering committed Nov 14, 2018
    This should somewhat address #10696.
  9. Merge pull request #10747 from poettering/machinectl-list-fix

    keszybz committed Nov 14, 2018
    properly acquire os-release file from containers
  10. Merge pull request #10763 from poettering/pending-reload-fix

    keszybz committed Nov 14, 2018
    when reloading, don't throttle unit/job dbus change signal generation
  11. json: decrease DEPTH_MAX to 4k

    yuwata authored and poettering committed Nov 13, 2018
    This makes DEPTH_MAX lower value, as test-json fails with stack
    overflow.
    
    Note that the test can pass with 8k, but for safety, here set to 4k.
    
    Fixes #10738.
  12. hwdb: Add accelerometer orientation quirk for the Chuwi CoreBook tablet

    rubensa authored and keszybz committed Nov 14, 2018
  13. travis: also compile and run unsafe unit tests

    evverx authored and keszybz committed Nov 14, 2018
  14. hwdb: Add Onda V820w accelerometer transformation matrix

    jambonmcyeah authored and keszybz committed Nov 14, 2018
    Added accelerometer transformation matrix for the Onda V820w Tablet
  15. unit: don't claim there was no IP traffic generated by a unit when we…

    poettering authored and keszybz committed Nov 13, 2018
    … don't know
    
    Only if we have some IP traffic accounting at all we should claim that.
  16. core: split out audit message generation from unit_notify()

    poettering authored and keszybz committed Nov 13, 2018
    Just some refactoring, no change in behaviour.
Commits on Nov 13, 2018
  1. update TODO

    poettering committed Nov 13, 2018
  2. Merge pull request #10757 from Antique/cgroupv2

    poettering committed Nov 13, 2018
    Fix cgroupv2 bpf-devices issues
  3. udev: downgrade message when we fail to set inotify watch up

    keszybz authored and poettering committed Nov 13, 2018
    My logs are full of:
    
    systemd-udevd[6586]: seq 13515 queued, 'add' 'block'
    systemd-udevd[6586]: seq 13516 queued, 'change' 'block'
    systemd-udevd[6586]: seq 13517 queued, 'change' 'block'
    systemd-udevd[6586]: seq 13518 queued, 'remove' 'bdi'
    systemd-udevd[6586]: seq 13519 queued, 'remove' 'block'
    systemd-udevd[9865]: seq 13514 processed
    systemd-udevd[9865]: seq 13515 running
    systemd-udevd[9865]: GROUP 6 /usr/lib/udev/rules.d/50-udev-default.rules:59
    systemd-udevd[9865]: IMPORT builtin 'blkid' /usr/lib/udev/rules.d/60-persistent-storage.rules:95
    systemd-udevd[9865]: IMPORT builtin 'blkid' fails: No such file or directory
    systemd-udevd[9865]: loop4: Failed to add device '/dev/loop4' to watch: No such file or directory
    (the last line is at error level).
    If we are too slow to set up a watch and the device is already gone by the time
    we try, this is not an error.
  4. udev: also allow resolve_names= to be specified in udev.conf

    keszybz committed Nov 13, 2018
  5. udev: move ResolveNameTiming definition and parsers to udev-util.h

    keszybz committed Nov 13, 2018
    Follow-up for c4d44cb. No functional change,
    but the parser is moved to libsystemd-shared.so.
  6. udevd: allow more parameters to be set through udev.conf

    keszybz committed Nov 13, 2018
    Rebooting to set change the kernel command line to set some udev parameters is
    inconvenient. Let's allow setting more stuff in the config file.
    
    Also drop quotes from around "info" in udev.conf. We need to accept them for
    compatibility, but there is no reason to use them.
  7. bpf-devices: fix order of removing and adding BPF programs

    Antique committed Nov 12, 2018
    The current code has multiple issues and it should never be done like
    that.  If someone updates list of allowed devices we should attach new
    program before we remove the old one for two reasons:
    
    1. It takes some time to attach new program so there is a period of time
    when all devices are allowed.
    
    2. BPF programs have limit for number of instructions (4096) and if user
    adds a lot of devices we might hit the instruction limit and the new
    program will not be accepted which will result in allow all devices
    because the old program was already removed.
    
    In order to attach the new program before we remove the old one we need
    to use BPF_F_ALLOW_MULTI flag every time.
    
    Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
  8. udev: do not pass timeout_warn_usec around, calculate it on demand

    keszybz committed Nov 13, 2018
    It was always set to one third of timeout_usec, so let's simplify things by
    calculating it using a helper function right before it is used.
    
    Before 9d9264b, udevd.c would avoid setting
    timeout_warn_usec to 0, using 1 instead. This wasn't necessary, because when
    timeout_warn_usec is finally used in spawn_wait(), it is ignored if
    timeout_usec is 0 or timeout_warn_usec is 0. So there was no need to handle
    this case specially.
  9. bpf-devices: fix cgroup v2 devices detection

    Antique committed Nov 12, 2018
    If cgroup v2 bpf devices is supported we need to return 1, not -1.
    
    Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
  10. core: make sure we don't throttle change signal generator when a relo…

    poettering committed Nov 13, 2018
    …ad is pending
    
    Fixes: #10627
  11. core: when we can't send the pending reload message, say we ignore it…

    poettering committed Nov 13, 2018
    … in the warning we log
    
    No change in behaviour, just better wording.
  12. core: rename queued_message → pending_reload_message

    poettering committed Nov 13, 2018
    This field is only used for pending Reload() replies, hence let's rename
    it to be more descriptive and precise.
    
    No change in behaviour.
  13. nspawn: add a hint to the message we emit when a child dies

    keszybz committed Nov 13, 2018
    From #10526:
    
    $ sudo systemd-nspawn -i image
    Spawning container image on /home/zbyszek/src/mkosi/image.
    Press ^] three times within 1s to kill container.
    Short read while reading cgroup mode.
  14. tree-wide: port over other candidates for namespace_fork()

    poettering committed Nov 12, 2018
    Let's always use the same, correct, way to join a namespace.
  15. machined: when reading os-release file, join PID namespace too

    poettering committed Nov 12, 2018
    This is required for /proc/self/fd/xyz to work, but that's what we need
    to convert the O_PATH fd returned by chase_symlinks() back to a regular
    file fd. Hence, let's do the joining of the namespaces fully and
    correctly, by doing fork()+setns()+fork() with the PID and fs
    namespaces.
    
    This makes use of the new namespace_fork() helper we just added.
    
    Fixes: #10549
  16. sd-bus: port over to namespace_fork()

    poettering committed Nov 12, 2018
    This is pretty similar code, let's replace it with the generic
    namespace_fork() implementation.