Commit Graph

845 Commits

Author SHA256 Message Date
Franck Bui
69f14481fb Accepting request 666162 from home:fbui:systemd:openSUSE-Factory
- Import commit ad34cc45f63720ced69960dc66b47bddb146176d
  Import a bunch of fixes from stable/v239-stable:
  c8293f5af4 Revert "network: set DynamicUser= to systemd-networkd.service"
  7f605592e6 Revert "resolve: enable DynamicUser= for systemd-resolved.service"
  5a48e92e06 test: Fix networkd test for an already running service
  36eae1688b Revert "timesyncd: enable DynamicUser="
  3a11f24cf0 Revert "unit: drop After=systemd-sysusers.service from timesyncd"
  23cfd15ce9 machinectl: fix verbosity of import-raw or friends
  ba037daf29 Make bzip2 an optional dependency for systemd-importd
  fb609d2721 pull: initialize libgcrypt before calling any functions provided by libgcrypt
  c50857bc6b hwdb: remove stray 'i' in hwdb match string for the HP Spectre (#9571)
  9a12fd17f5 man: Mention that paths in unit files must be fully normalized.
  76fc2ab4a6 tree-wide: use  instead of #ifdef for HAVE_*
  fcc699c093 network: update log message
  a4f497b2cd Use #if instead of #ifdef for ENABLE_GSHADOW
  121c662eb8 man: add missing option for system.conf
  564341146e core: add missing option and drop nonexistent option in system.conf
  7082a3599f journal: add missing option in journald.conf
  3c15efa9c1 basic: add missing comma in raw_clone assembly for sparc
  4c210b6dce cryptsetup: Add dependency on loopback setup to generated units
  c777fbbe3e journal-gateway: use localStorage["cursor"] only when it has valid value
  c5b1bef639 journal-gateway: explicitly declare local variables
  2361522ca6 analyze: actually select longest activated-time of services
  3e810d92d9 sd-bus: fix implicit downcast of bitfield reported by LGTM
  aef660a4cf resolvconf: fixes for the compatibility interface
  06b3f54f50 install: fix error handling in is_symlink_with_known_name()
  f70ab9a468 portable: fix error handling
  d2c40d4e80 resolve: fix return value type of dns_answer_has_dname_for_cname()
  6f684e0670 resolve: dns_scope_network_good() does not returns negative errno
  15d83e1138 bus-util: fix error handling

OBS-URL: https://build.opensuse.org/request/show/666162
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1050
2019-01-15 10:11:50 +00:00
Franck Bui
f063f8a948 Accepting request 664420 from home:fbui:systemd:openSUSE-Factory
- Import commit 3bece8a25ae11e8ec132cdecc7e72a00ee790994
  89a9721a47 Revert "logind: become the controlling terminal process before restoring VT" (bsc#1120836)
  c3a8dc821b pam_systemd: reword message about not creating a session
  0ba0f5b3ef pam_systemd: suppress LOG_DEBUG log messages if debugging is off

- Import commit a3b059a8c60622e4ec30aabda93c6b41d0953dc4
  9dbe9f12ec journal-remote: set a limit on the number of fields in a message (CVE-2018-16865 bsc#1120323)
  61d569ab1b journal-remote: verify entry length from header
  a08760b26c µhttpd: use a cleanup function to call MHD_destroy_response
  43f46a1a3d journal-gateway: use _cleanup_ attribute to stop microhttpd daemon
  437b0b2d01 journald: lower the maximum entry size limit to ½ for non-sealed fds
  ac9e209710 journald: when processing a native message, bail more quickly on overbig messages
  ce103705b9 journald: set a limit on the number of fields (1k) (CVE-2018-16865 bsc#1120323)
  35538171c2 coredump: fix message when we fail to save a journald coredump
  cfe247b555 basic/process-util: limit command line lengths to _SC_ARG_MAX
  9d59e6f6ee journald: do not store the iovec entry for process commandline on stack (CVE-2018-16864 bsc#1120323)
  8d650a68d4 journald: remove unnecessary {}
  b608f532a4 coredump: remove duplicate MESSAGE= prefix from message
  0dbb2dc066 vconsole-setup: fonts copy will fail if the current terminal is in graphical mode (bsc#1114933)
  e501d65540 Revert "systemctl: when removing enablement or mask symlinks, cover both /run and /etc"
  d3ea69961f fs-util: rename safe_transition() into unsafe_transition()
  338470fdc9 tmpfiles: use CHASE_WARN in addition to CHASE_SAFE
  d9ae1b30da fs-util: make chase_symlink() returns -ENOLINK when unsafe transitions are met
  8b76594d1f fs-util: add new CHASE_WARN flag to chase_symlinks()

OBS-URL: https://build.opensuse.org/request/show/664420
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1049
2019-01-10 16:21:21 +00:00
Franck Bui
727ea02126 Accepting request 653864 from home:fbui:systemd:openSUSE-Factory
- Import commit 8ae56af7802ef8f91fac64fa244d62a4468fbbd5
  4474878178 udev-builtin-kmod: adjust logging
  805534aff5 core: use the generic module_load() function
  ac7e902530 shared/module-util: fix preexisting mixup with errno sign
  415aa40793 udev-builtin-kmod: use the generic module_load() function
  8a36b4bac6 Move module-util.h to src/shared/ and load_module() to libshared
  999b910752 core/kmod-setup: restore comments
  1f2b822a21 logind: stop managing VT switches if no sessions are registered on that VT
  5ad8d374c5 terminal-util: introduce vt_release() helper
  145d492490 logind: become the controlling terminal process before restoring VT (bsc#1101591)
  d4b5dbc033 terminal-util: introduce vt_restore() helper
  2e8af185f0 logind: make session_restore_vt() static
  ff3048364f udev: downgrade message when we fail to set inotify watch up (bsc#1005023)

- Fix the test for figuring out if /etc/machine-id is writable in %post (bsc#1117063)
  "test -w" always returns true for root user even if the writable
  mode bits are not set. Fix this by testing the file mode bit value
  instead.

- Move systemd-sysv-convert from /usr/sbin to /usr/lib/systemd
  This tool is not supposed to be run by users.

- Import commit 8ae56af7802ef8f91fac64fa244d62a4468fbbd5
  4474878178 udev-builtin-kmod: adjust logging
  805534aff5 core: use the generic module_load() function
  ac7e902530 shared/module-util: fix preexisting mixup with errno sign
  415aa40793 udev-builtin-kmod: use the generic module_load() function
  8a36b4bac6 Move module-util.h to src/shared/ and load_module() to libshared
  999b910752 core/kmod-setup: restore comments
  1f2b822a21 logind: stop managing VT switches if no sessions are registered on that VT

OBS-URL: https://build.opensuse.org/request/show/653864
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1048
2018-12-04 13:51:59 +00:00
Franck Bui
a67e516a93 Accepting request 649551 from home:fbui:systemd:openSUSE-Factory
- Import commit 69f9f79e1b03e3d23df25b61cbcc9304af3e358f (bsc#1080919 CVE-2018-6954)
  f3615ce49 tmpfiles: don't adjust qgroups on existing subvolumes (bsc#1093753)
  7165e92f4 tmpfiles: use fd_get_path() even less excessively
  c2c531c1d test: make TEST-22 easier to debug, by outputting to /dev/console
  621b78317 test: don't use "nobody:nogroup" for tests
  1f9c7acad tmpfiles: return correct error variable after fd_reopen()
  2236280c1 tmpfiles: reindent one comment less weirdly
  f6bdfb889 tmpfiles: use correct error variable
  bc75127cd tmpfiles: clarify that we ignore file attribute setting errors
  621c8b1fe tmpfiles: add log message where we previously failed silently
  bc9229630 tmpfiles: use fd_get_path() less excessively
  5a1106039 tmpfiles: add more tests
  c974086cc tmpfiles: don't follow unsafe transitions in path_set_*()
  e64a510eb fs-util: add new CHASE_NOFOLLOW flag to chase_symlinks()
  7480154d0 tmpfiles: make create_fifo() safe
  eb890962c fs-util: introduce mkfifoat_atomic() helper
  653bb81af fileio: make tempfn_random_child() accept empty string as path
  2b1e12bfe tmpfiles: introduce create_fifo()
  6dd80f289 tmpfiles: introduce empty_directory()
  f2c137edf tmpfiles: introduce create_directory() and create_subvolume() and make them safe
  6a76f6dfb basic/stat-util: introduce is_dir_fd()
  38a7f2e81 btrfs-util: unfuck tmpfiles' subvol creation
  26e19b6fe btrfs-util: introduce btrfs_subvol_make_fd()
  5fb5bdf5d basic/label: introduce mkdirat_label()/mkdirat_errno_wrapper() helpers
  390b767da selinux: introduce mac_selinux_create_file_prepare_at()
  0f72fadba smack: introduce mac_smack_fix_at()
  f2838154b tmpfiles: introduce create_directory_or_subvolume()
  2de697fb8 tmpfiles: make create_device() safe
  558c5fec7 tmpfiles: introduce create_device()
  dee986b1d tmpfiles: make copy_files() safe

OBS-URL: https://build.opensuse.org/request/show/649551
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1047
2018-11-16 12:20:42 +00:00
Franck Bui
fb6d5ece35 Accepting request 647602 from home:fbui:systemd:openSUSE-Factory
- Make systemd-mini-sysvinit provides systemd-sysvinit
  Some packages (such as shepherd-bins) want to conflicts with
  systemd-sysvinit: they should also conflict with
  systemd-mini-sysvinit.

OBS-URL: https://build.opensuse.org/request/show/647602
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1046
2018-11-09 14:32:33 +00:00
Franck Bui
c05c20d1c4 Accepting request 646968 from home:fbui:systemd:openSUSE-Factory
- Add 0001-logind-keep-backward-compatibility-with-UserTasksMax.patch
  We have to keep support for UserTasksMax= for a while before
  dropping it. This patch is supposed to do that and also to make
  users aware of this change. It also hints how to configure that
  differently.

- Import commit f39674d6d114d999c50672c7bea8cad21e1eaed9
  7d1e04e85 units: use =yes rather than =true everywhere
  185ce0d34 units: assign user-runtime-dir@.service to user-%i.slice
  a051f5e41 units: make sure user-runtime-dir@.service is Type=oneshot
  30c6842c3 units: set StopWhenUnneeded= for the user slice units too
  e74de046e login: fix typo in log message

OBS-URL: https://build.opensuse.org/request/show/646968
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1045
2018-11-07 12:57:03 +00:00
Franck Bui
fe0009f50a Accepting request 646424 from home:fbui:systemd:openSUSE-Factory
- Own %{_libexecdir}/modules-load.d (again)
  This was incorrectly dropped during the split of the SUSE specific
  configurations.

- Drop a Conflicts: in systemd-coredump
  It not needed anymore since the mini variant of systemd-coredump is
  not built anymore.

- Import commit b54f5d7a8b41898ce98f43cd1a6cc92c0071806d
  5def29d24 coredump: only install coredump.conf when ENABLED_COREDUMP=true
  9133e2d6e dhcp6: make sure we have enough space for the DHCP6 option header (bsc#1113632 CVE-2018-15688)
  ebc3fa418 dhcp6: split assert_return() to be more debuggable when hit
  51eefb6ac chown-recursive: let's rework the recursive logic to use O_PATH (bsc#1113666 CVE-2018-15687)
  e1e1aa237 core: skip unit deserialization and move to the next one when unit_deserialize() fails
  1c726c87d core: when deserializing state always use read_line(…, LONG_LINE_MAX, …) (bsc#1113665 CVE-2018-15686)
  4cd7d11ac core: don't create Requires for workdir if "missing ok" (bsc#1113083)

- Make systemd-coredump sub-package optional
  and don't build the mini variant.

- Drop duplicated %{?mini} suffix for systemd-{container,coredump} subpackages
  "-mini" is already part of the name of the main package so there's
  no need to append it again for those sub packages. It's only needed
  when the name of a subpackage is completely redefined, IOW when '-n'
  option is used with the %package directive.

- Dont ship /usr/sbin/resolvconf symlink for now
  It conflicts with the bin shipped by openresolv and provides
  limited compat only.

OBS-URL: https://build.opensuse.org/request/show/646424
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1044
2018-11-05 14:11:51 +00:00
Franck Bui
f41fecfd11 Accepting request 645542 from home:tsaupe:branches:Base:System
split off SUSE specific configuration from systemd package (fate#325478)

OBS-URL: https://build.opensuse.org/request/show/645542
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1043
2018-10-30 14:45:41 +00:00
Franck Bui
169276029b Accepting request 644261 from home:fbui:systemd:openSUSE-Factory
- Upgrade to v239 (commit 6d8584e7e8e5d13d2bab49b9e6f6d2ec39759978)

OBS-URL: https://build.opensuse.org/request/show/644261
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1042
2018-10-24 11:17:43 +00:00
Franck Bui
cc2059c980 Accepting request 642103 from home:fbui:systemd:openSUSE-Factory
- Ship systemd-sysv-install helper via the main package
  This script was part of systemd-sysvinit sub-package but it was
  wrong since systemd-sysv-install is a script used to redirect
  enable/disable operations to chkconfig when the unit targets are
  sysv init scripts. Therefore it's never been a SySV init tool.
  While at it, don't ship this script (as well as
  systemd-sysv-convert) when sysvcompat is not defined.

- Import commit 19b3868d32af20f1ecc86fe3c997144ff456fd65
  06c2284d64 core: introduce systemd.early_core_pattern= kernel cmdline option
  479b002083 core: add missing 'continue' statement
  c7fbccc62e journald: don't ship systemd-journald-audit.socket (bsc#1109252)
  f17a6c790c detect-virt: do not try to read all of /proc/cpuinfo (bsc#1109197)
  5a1aa84544 compat-rules: generate more compat by-id symlinks for NVMe devices (bsc#1095096)

OBS-URL: https://build.opensuse.org/request/show/642103
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1041
2018-10-15 18:07:19 +00:00
Franck Bui
e7d1a36cd5 Accepting request 638970 from home:fbui:systemd:openSUSE-Factory
- Import commit a67b516d49115a5be0f2ac27a2874cee6c59a7ae
  f8457adf9d emergency: make sure console password agents don't interfere with the emergency shell
  b8bbb50634 man: document that 'nofail' also has an effect on ordering
  a5410b2229 journald: take leading spaces into account in syslog_parse_identifier
  b793c312c7 journal: do not remove multiple spaces after identifier in syslog message
  f9595f0481 syslog: fix segfault in syslog_parse_priority()
  d464f06934 journal: fix syslog_parse_identifier()
  e70422883a socket-util: attempt SO_RCVBUFFORCE/SO_SNDBUFFORCE only if SO_RCVBUF/SO_SNDBUF fails (bsc#991901)

OBS-URL: https://build.opensuse.org/request/show/638970
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1040
2018-09-28 08:14:34 +00:00
Franck Bui
8ebaeda0d7 Accepting request 635764 from home:fbui:systemd:openSUSE-Factory
- Enable or disable machines.target according to the presets (bsc#1107941)

OBS-URL: https://build.opensuse.org/request/show/635764
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1039
2018-09-14 13:06:52 +00:00
Franck Bui
1286bbffdf Accepting request 635662 from home:fbui:systemd:openSUSE-Factory
- Import commit cc55f1ea9e1c1ccab5b9fb97e10e08830d02b282
  962b38aaf user@.service: don't kill user manager at runlevel switch (bsc#1091677)
  3986c4d82 units: make sure user@.service runs with dbus still up
  5e68aa0f2 Revert "udevd: increase maximum number of children" (bsc#1107617)
  099138fd9 fix race between daemon-reload and other commands (v237) (bsc#1105031)

OBS-URL: https://build.opensuse.org/request/show/635662
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1038
2018-09-14 07:33:06 +00:00
Franck Bui
3f0aab84c7 Accepting request 634921 from home:fbui:systemd:openSUSE-Factory
- Import commit 6ac2232d88f4b64428511a4692a51bd00d610b32
  6247696db nspawn: always use mode 555 for /sys (bsc#1107640)
  72f558b57 cryptsetup: do not define arg_sector_size if libgcrypt is v1.x (#9990)
  cfcd97cf2 cryptsetup: add support for sector-size= option (#9936) (fate#325634)

OBS-URL: https://build.opensuse.org/request/show/634921
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1037
2018-09-11 09:22:58 +00:00
Franck Bui
e97d025b91 Accepting request 628334 from home:fbui:systemd:Factory
3e4156a8f tmpfiles: don't adjust qgroups on existing subvolumes (bsc#1093753)

OBS-URL: https://build.opensuse.org/request/show/628334
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1036
2018-08-09 06:51:29 +00:00
Franck Bui
c97cf5901a Accepting request 628331 from home:fbui:systemd:Factory
- Import commit bb5a925bcefd4743873cae3f748ae1a426e92d44
  8983bd246 core: don't include libmount.h in a header file (#8580)
  3e4156a8f tmpfiles: don't adjust qgroups on existing subvolumes
  42edc93ac core/service: rework the hold-off time over message

- Enable regexp matching support
  Currently only used by "journalctl --grep=xxx".

OBS-URL: https://build.opensuse.org/request/show/628331
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1035
2018-08-09 06:47:09 +00:00
Franck Bui
9aa18a8211 Accepting request 625754 from home:fbui:systemd:Factory
- Import commit 0350f62a8cf7f151951b6b78337fe3c198b8bf6a
  fbf43a697 core: don't freeze OnCalendar= timer units when the clock goes back a lot (bsc#1090944)
  4134ba8b6 man: SystemMaxUse= clarification in journald.conf(5) (bnc#1101040)
  78bb2a0c4 socket-util: fix getpeergroups() assert(fd) (#8080) (bsc#1096516)
  1753d0420 systemctl: mask always reports the same unit names when different unknown units are passed (bsc#1095973)
  50ebf79d7 scsi_id: Fixup prefix for pre-SPC inquiry reply (bsc#1039099)
  570f7655b locale-util: on overlayfs FTW_MOUNT causes nftw(3) to not list *any* files

OBS-URL: https://build.opensuse.org/request/show/625754
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1034
2018-07-27 10:52:36 +00:00
Franck Bui
990ec93c52 Accepting request 618913 from home:fbui:systemd:Factory
- Drop runtime dependency on dracut (bsc#1098569)
  Otherwise systemd pulls in tools to generate the initrd even in
  container/chroot installations that don't have a kernel anyways.
  For environments where initrd matters, dracut should be pulled via a
  pattern.
- Drop runtime dependency on dracut (bsc#1098569)
  Otherwise systemd pulls in tools to generate the initrd even in
  container/chroot installations that don't have a kernel anyways.
  For environments where initrd matters, dracut should be pulled via a
  pattern.

OBS-URL: https://build.opensuse.org/request/show/618913
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1033
2018-06-25 09:34:18 +00:00
Franck Bui
e0481b1b39 Accepting request 616860 from home:fbui:systemd:Factory
- Import commit f63623c1fc0eb01b8efc2037d004f42ed8328356
  6a161916f device: make sure to always retroactively start device dependencies (take #2) (bsc#1088052)
  e4402648c Fix pattern to detect distribution
  ad59c7970 install: "user" and "global" scopes are equivalent for user presets (boo#1093851)
  b1876c81a rpm: remove confusing --user before --global
  00ea8a214 man: updated systemd-analyze blame description for service-units with Type=simple (#8834) (bsc#1091265)
  a9b587e2f fileio.c: fix incorrect mtime

- Add 0001-resolved-create-etc-resolv.conf-symlink-at-runtime.patch (boo#1024897)
- Ship systemd-resolved (but disabled by default) (bsc#1018387)

OBS-URL: https://build.opensuse.org/request/show/616860
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1032
2018-06-14 12:46:09 +00:00
Franck Bui
b37be8f125 Accepting request 610240 from home:fbui:systemd:Factory
- Disable user units by default (bsc#1090785)

OBS-URL: https://build.opensuse.org/request/show/610240
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1031
2018-05-18 08:47:33 +00:00
Franck Bui
6a1e4dff08 Accepting request 606967 from home:fbui:systemd:Factory
- Slight rewrite of the previous fix

- Move 80-container-v[ez].network in systemd-container sub-package

OBS-URL: https://build.opensuse.org/request/show/606967
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1030
2018-05-14 09:20:18 +00:00
Thomas Blume
1fcd3068cc Accepting request 605344 from home:tsaupe:branches:Base:System
align permissions of /etc/machine-id to upstream code (bsc#1092269)

OBS-URL: https://build.opensuse.org/request/show/605344
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1029
2018-05-08 13:55:23 +00:00
Thomas Blume
af30e92b9c Accepting request 605303 from home:tsaupe:branches:Base:System
align permissions of /etc/machine-id to upstream code (bsc#1092269)

OBS-URL: https://build.opensuse.org/request/show/605303
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1028
2018-05-08 11:42:09 +00:00
Franck Bui
47219acb83 Accepting request 599905 from home:fbui:systemd:Factory
- Import commit d8196805089566ecd846b7c627ff2f3c42588c50
  621b247f3 device: skip deserialization of device units when udevd is not running
  a7da5bdbc device: make sure to always retroactively start device dependencies (bsc#1088052)
  303624f6f systemd-udevd: limit children-max by available memory (#8668) (bsc#1086785 bsc#1066422)
  76acf3ae9 tmpfiles: fix directory removal with force symlink (#8619)

- Ship 99-sysctl.conf instead of creating it during package installation/update (bsc#1088769)
  Previously this symlink was created in /etc/sysctl.d during %post
  which made the symlink not owned and more importantly it was created
  only if /etc/sysctl.conf is already installed which is not always
  the case during the installation process it seems.
  So ship the symlink unconditionally and put it in /usr/lib/sysctl.d
  instead since it's a distro default behavior that might be overriden
  by sysadmin later.

- Be consistent in 60-io-scheduler.rules
  And use "?*" when checking for the non empty string (instead of "*?").

OBS-URL: https://build.opensuse.org/request/show/599905
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1027
2018-04-23 08:01:18 +00:00
Franck Bui
ae5c158f46 Accepting request 592117 from home:develop7:branches:Base:System
- Enhance IO scheduler tweaking rules to support blk-mq as well
  * Set optimal blk-mq schedulers (bfq and mq-deadline for HDD and 
    SSD respectively)
  * Explicitly set CFQ for rotational disks when no `elevator`
    is specified
  * Verbose comments explaining what is going on
  * Rename the rules file since it is not ssd-only anymore

OBS-URL: https://build.opensuse.org/request/show/592117
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1026
2018-04-09 09:39:49 +00:00
Franck Bui
875c8ba9ac Accepting request 593528 from home:fbui:systemd:Factory
- /usr/lib/systemd/systemd-coredump was missing from systemd-coredump sub-package (boo#1088057)

OBS-URL: https://build.opensuse.org/request/show/593528
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1025
2018-04-04 11:52:31 +00:00
Franck Bui
23808f6167 Accepting request 592079 from home:fbui:systemd:Factory
- Drop systemd-bash-completion sub-package
  Now we directly ship the completion scripts from the main package as
  we already do for zsh. I couldn't see any advantages in this split.

- Be more accurate when specifiying the tools version we provide

- Make sure rpm won't expand %autopatch even if it's commented

- stat(1) as well as systemctl are not use in %post section of udev
  So remove stat(1) from the list of dep and move systemctl to the
  requirements of %postun since it's called from there.
- Be more accurate when specifiying the tools version we provide

- Make sure rpm won't expand %autopatch even if it's commented

- stat(1) as well as systemctl are not use in %post section of udev
  So remove stat(1) from the list of dep and move systemctl to the
  requirements of %postun since it's called from there.

OBS-URL: https://build.opensuse.org/request/show/592079
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1024
2018-03-28 15:27:54 +00:00
Franck Bui
f021228999 Accepting request 592039 from home:fbui:systemd:Factory
- Import commit 14b3e00c3ccb8c1c82c8a2e99a9534750880a09e
  e0a8285e2 pid1: when creating service directories, don't chown existing files (#8181) (boo#1085971)
  fb25886b1 Fix format-truncation compile failure by typecasting USB IDs (#8250) (bsc#1084638)
  5a6e9c92e sysusers: make sure to reset errno before calling fget*ent()
  c2e1ee488 sysusers: also add support for NIS entries in /etc/shadow
  51cb94fa1 sysusers: do not append entries after the NIS ones (bsc#1085062 bsc#1045092)
  783f3d368 basic/macros: rename noreturn into _noreturn_ (#8456)
- Drop 0001-basic-macros-rename-noreturn-into-_noreturn_.patch
  It's been merged in the git repo.

- Rename the tarball
  So it's clear that it contains some additional patches on top of the
  upstream version. Use the commit hash in the name so the exact
  version can easily be identified.
  Provide _service file which can be used to retrieve the tarball from
  the git repo (with "osc service disabledrun").

- Split systemd-coredump sub-package off (bsc#1083849)

- Don't ship machines.target in systemd-container but in systemd main package
  machines.target is supposed to be a standard target for
  starting/stopping all containers. systemd-nspawn is the main user of
  it but other container managers could also make use of it.

- Build a mini variant of systemd-container
  So we don't have to manually track and remove all files that should
  be shipped by systemd-container in the case of a bootstrap build.

- Run migrate-sysconfig-i18n.sh also during package installation (bsc#1086164)
  This is needed when we upgrade from SLE11.

OBS-URL: https://build.opensuse.org/request/show/592039
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1023
2018-03-28 13:00:43 +00:00
Franck Bui
261b179c79 Accepting request 587018 from home:fbui:systemd:Factory
- Add 0001-basic-macros-rename-noreturn-into-_noreturn_.patch
  This fix a build error triggered by the introduction of the new
  version of libgpg-error package. Patch submitted to upsream:
  https://github.com/systemd/systemd/pull/8456

- Turn off the IP sandboxing for systemd-logind
  Since v235 logind run inside an IPv4/IPv6 sandbox by default. This
  creates incompatibilites for systems using NIS.

OBS-URL: https://build.opensuse.org/request/show/587018
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1022
2018-03-14 17:27:51 +00:00
Franck Bui
db6ac8f2b0 Accepting request 586444 from home:fbui:systemd:Factory
- Restore (maybe temporarly) "pam_config --add systemd"
  During its installation pam-config seems to overwrite the defaults
  shipped by "pam" for "some" reasons (see bsc#1084924)
  No idea why but since pam_systemd is not part of the "pam-config"
  defaults, we need to restore pam_systemd in common-session
  manually...

OBS-URL: https://build.opensuse.org/request/show/586444
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1021
2018-03-13 15:13:50 +00:00
Franck Bui
f235dc515b Accepting request 584654 from home:fbui:systemd:Factory
- Remove dropin that was used to turn delegation off for user instances
  Upstream now enables "memory" and "pids" controllers only which
  should have a very limited impact on performance compare to the
  "cpu" controller.

- Import commit 46d6bc9c4f1c05f3b4fcfca754cc59963bd86ce3
  2a79f4e78 units: delegate "memory" instead of "cpu" by default for user instances (#8320) (bsc#954765 bnc#953241 fate#320421)
  88174ae85 compat-rules: fix syntax errors spotted by test/rule-syntax-check.py

OBS-URL: https://build.opensuse.org/request/show/584654
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1020
2018-03-09 09:56:29 +00:00
Franck Bui
1af3fab1b6 Accepting request 584640 from home:fbui:systemd:Factory
- Fix hotplug memory in 80-hotplug-cpu-mem.rules
- Make sure /var/lib/machines is created when systemd-container is installed

OBS-URL: https://build.opensuse.org/request/show/584640
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1019
2018-03-09 09:28:21 +00:00
Franck Bui
aadbcb2ba8 Accepting request 584202 from home:tsaupe:branches:Base:System:systemd
add basic user space support for suspend to idle (fate#323814)

OBS-URL: https://build.opensuse.org/request/show/584202
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1018
2018-03-08 08:46:25 +00:00
Franck Bui
89039739d4 Accepting request 581724 from home:fbui:systemd:Factory
- BS forces us to own %{_prefix}/lib/modprobe.d
  This seems wrong but that's how the SUSE BS works.

- Upgrade to v237 (commit 78221ca750a9c266f9f8497dda59d7ee44000a6c)
  Udev rules 60-ssd-scheduler.rules and 80-hotplug-cpu-mem.rules have
  been removed from the git repo and are now maintained at the package
  level. Those rules have been rejected by upstream and are defining
  some defaults which should maintain by the kernel folks.

- Don't call "pam-config --systemd"
  pam_systemd.so has been integrated directly in the PAM stack since
  bsc#812462. So there's no need to call pam-config.

OBS-URL: https://build.opensuse.org/request/show/581724
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1017
2018-03-01 14:26:05 +00:00
Franck Bui
66dd57ccd5 Accepting request 580181 from home:fbui:systemd:Factory
- Fix build errors due to the split-off of systemd-containe:
  found conflict of systemd-234-33.1.x86_64 with systemd-container-234-33.1.x86_64:
    - /usr/share/man/man5/systemd.nspawn.5.gz
    - /usr/share/man/man1/systemd-nspawn.1.gz
  found conflict of systemd-container-234-33.1.x86_64 with systemd-mini-container-234-33.1.x86_64:
    - /usr/bin/systemd-nspawn
    - /usr/lib/systemd/system/systemd-nspawn@.service
    - /usr/lib/tmpfiles.d/systemd-nspawn.conf

OBS-URL: https://build.opensuse.org/request/show/580181
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1016
2018-02-26 10:53:13 +00:00
Franck Bui
0443058e46 Accepting request 580123 from home:favogt:licensetag
Use %license (boo#1082318). Please forward to SLE, if possible

OBS-URL: https://build.opensuse.org/request/show/580123
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1015
2018-02-26 10:09:47 +00:00
Franck Bui
b683711c35 Accepting request 579036 from home:fbui:systemd:Factory
- Split off systemd-container sub-package off
  Other distros already do it and it seems a good idea to not install
  this stuff on new installations by default. At least
  /var/lib/machines subvol is not created anymore at boot even if it
  wasn't used at all.

OBS-URL: https://build.opensuse.org/request/show/579036
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1014
2018-02-22 15:07:17 +00:00
Franck Bui
c5167af1a7 Accepting request 578063 from home:fbui:systemd:Factory
- Import commit 295ead0f396beb2b5199abd99a17e274c2581f95
  f4f94ab2e meson: install rules/80-hotplug-cpu-mem.rules
  2901aa9b9 meson: install rules/60-ssd-scheduler.rules
  1293c0056 core: use id unit when retrieving unit file state (#8038) (bsc#1075801)
  596b2b241 Revert "vconsole-setup: add SUSE specific settings for font/keyboard in sysconfig"
  0b595da04 Revert "locale-setup: handle locale at boot time well"

- Re-enable systemd-firstboot
  It's used by the installer and also by JeOS.

OBS-URL: https://build.opensuse.org/request/show/578063
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1013
2018-02-19 14:47:09 +00:00
Franck Bui
2c48c01415 Accepting request 577997 from home:fbui:systemd:Factory
- Use %systemd_post in %post

- Own /usr/lib/systemd/system-environment-generators directory

- More systemd rpm macro usages

- Disable systemd-firstboot
  I don't think there's any use case for it currently.

- Use systemd rpm macros in paths defined in the specfile

- Stop importing i18n settings from /etc/sysconfig (fate#319454)
  Bits taken from SLE15.

- Make systemd-timesyncd use the openSUSE NTP servers by default
  Previously systemd-timesyncd used the Google Public NTP servers
  time{1..4}.google.com

- Use %systemd_post in %post

- Own /usr/lib/systemd/system-environment-generators directory

- More systemd rpm macro usages

- Disable systemd-firstboot
  I don't think there's any use case for it currently.

- Use systemd rpm macros in paths defined in the specfile

- Stop importing i18n settings from /etc/sysconfig (fate#319454)

OBS-URL: https://build.opensuse.org/request/show/577997
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1012
2018-02-19 12:48:14 +00:00
Franck Bui
40391bcdb7 Accepting request 574684 from home:fbui:systemd:Factory
- Import commit 4a6a1e4f0b02e6cedf7eba93b85a6dd968f875c7
  db1d8eacd compat-rules: make path_id_compat build with meson
- Drop 0001-compat-rules-make-path_id_compat-build-with-meson.patch
  which is now part of the git repo (see above).

OBS-URL: https://build.opensuse.org/request/show/574684
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1011
2018-02-09 14:26:29 +00:00
Franck Bui
4ded9f6e41 Accepting request 574512 from home:fbui:systemd:Factory
- Don't ship /usr/lib/systemd/system/tmp.mnt at all (bsc#1071224)

- Don't build seccomp support in the mini package

OBS-URL: https://build.opensuse.org/request/show/574512
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1010
2018-02-09 09:01:49 +00:00
Franck Bui
4ba6d39d93 Accepting request 573381 from home:fbui:systemd:Factory
- Switch to Meson build system
  Some rearrangement in the file list was also needed. That was
  probably due to the upgrade of rpm.

- Import commit 0a5600eb7f8263c7c79fec0d85cc159d54aba636
  2a181fc6f insserv-generator: make it build with meson
  7b0401da4 build-sys: don't build networkctl if networkd is disabled

- Don't build-require selinux for the mini package

- Drop libgcrypt.m4
  The mini package builds fine without it so it doesn't seem necessary
  anymore.

- Import commit 846d838c37865da60eba48090e570e959291399f
  b1e0a348d fileio: include sys/mman.h
  f1fa784cb meson: update header file to detect memfd_create()
  8838ba7ec meson: define _GNU_SOURCE to detect copy_file_range() (#7734)
  531a00c84 Restore "restore /var/run and /var/lock bind mount if they aren't symlink""
  (the 3 first commits make systemd build against glibc 2.27)

- Import commit 3f421e4fbf6fcb31d74caf729435868ba8824483
  7fb9ea39a Revert "restore /var/run and /var/lock bind mount if they aren't symlink"
  23ce1207a meson.build: make docdir configurable (#8068)
- Import commit 0a5600eb7f8263c7c79fec0d85cc159d54aba636

OBS-URL: https://build.opensuse.org/request/show/573381
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1009
2018-02-06 15:23:04 +00:00
Franck Bui
404fe218b3 Accepting request 571921 from home:fbui:systemd:Factory
- Import commit 8ec9f58d334c76e736957812d9e57151502a6f63
  07c6ee3eb compat-rules: get rid of scsi_id when generating compat symlinks for NVMe devices (bsc#1051465)
  261a4ef38 compat-rules: generate compat by-id symlinks with 'nvme' prefix missing (bsc#1063249)

- Drop 0001-compat-rules-get-rid-of-scsi_id-when-generating-comp.patch
  It's been imported in branch "compats/udev-compat-symlinks" which
  has been merged in branch "openSUSE-Factory" in its turn.

- Import commit c516268845b0fd0683cef2e491b84077371e8f01
  37da1facb core: disable session keyring per system sevice entirely for now (bnc#1045886)
  8a1ae0449 strv: fix buffer size calculation in strv_join_quoted()

- Drop 0001-core-disable-session-keyring-per-system-sevice-entir.patch
  It's been merged in branch "SUSE/v234".

OBS-URL: https://build.opensuse.org/request/show/571921
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1008
2018-02-02 10:09:06 +00:00
Franck Bui
f74e77ec41 Accepting request 571464 from home:fbui:systemd:Factory
- Import commit 2087a80d56bb6f8c7fb74a19172259bc9d9af866
  2b8971b8a tmpfiles: refuse to chown()/chmod() files which are hardlinked, unless protected_hardlinks sysctl is on (bsc#1077925 CVE-2017-18078)
  8c2bcac25 tmpfiles: change ownership of symlinks too

OBS-URL: https://build.opensuse.org/request/show/571464
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1007
2018-01-31 15:24:18 +00:00
Franck Bui
19298a8c3f Accepting request 570496 from home:fbui:systemd:Factory
- Do not optionally remove /usr/lib/systemd/system/tmp.mnt anymore (bsc#1071224)

OBS-URL: https://build.opensuse.org/request/show/570496
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1006
2018-01-29 10:07:56 +00:00
Franck Bui
02f7c72ea4 Accepting request 569902 from home:fbui:systemd:Factory
- Import commit 83067827cc891ddc90def200fdbe725917ec9fa3
  3d60486f7 core/timer: Prevent timer looping when unit cannot start (bsc#1068588)
  460bd0cd6 Revert "handle SYSTEMCTL_OPTIONS environment variable" (fate#323393)

OBS-URL: https://build.opensuse.org/request/show/569902
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1005
2018-01-26 14:48:35 +00:00
Franck Bui
2f75274ab6 Accepting request 566368 from home:fbui:systemd:Factory
- Import commit cc94ce8513221061898c83f57862544b16021f0e
  aa3eba828 delta: don't ignore PREFIX when the given argument is PREFIX/SUFFIX
  b1ea0173a delta: extend skip logic to work on full directory paths (prefix+suffix) (bsc#1070428)
  77c5065f9 delta: check if a prefix needs to be skipped only once
  db32866d1 Fix parsing of features in detect_vm_xen_dom0 (#7890) (bsc#1048510)
  11d40461a sd-bus: use -- when passing arguments to ssh (#6706)
  1148d99f6 tmpfiles: consider /etc uninitialized also when /etc/machine-id is present but empty (#7849) (bsc#1075179)
  3a95f69bf tmpfiles: downgrade warning about duplicate line

- Edit scripts-systemd-fix-machines-btrfs-subvol.sh
  We shouldn't be creating a /var/lib/machines subvolume if /var is
  already a seperate partition or subvolume. /var/lib/machines will
  already be excluded from snapper & similar tooling in this case.

OBS-URL: https://build.opensuse.org/request/show/566368
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1004
2018-01-16 11:09:48 +00:00
Franck Bui
9992848d2d Accepting request 563822 from home:RBrownSUSE:branches:Base:System
- Edit scripts-systemd-fix-machines-btrfs-subvol.sh
  We shouldn't be creating a /var/lib/machines subvolume if /var is
  already a seperate partition or subvolume. /var/lib/machines will
  already be excluded from snapper & similar tooling in this case.

OBS-URL: https://build.opensuse.org/request/show/563822
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1003
2018-01-15 10:27:52 +00:00
Franck Bui
9bfa9de1d6 Accepting request 563316 from home:fbui:systemd:Factory
- Import commit 82dbe8a2ae56649231111eaadd4c302a2d2175ee
  8c7f0c449 service: Don't stop unneeded units needed by restarted service (bsc#1066156)
  869be64ce sysctl: use raw file descriptor in sysctl_write (#7753)
  0c2400810 sysctl: disable buffer while writing to /proc (bsc#1071558)
  9eb1f30b8 Use read_line() and LONG_LINE_MAX to read values configuration files. (bsc#1071558)
  4dbea654f def: add new constant LONG_LINE_MAX
  48f14cd71 fileio: add new helper call read_line() as bounded getline() replacement
  861e1a222 build-sys: udevadm should have LOG_REALM=LOG_REALM_UDEV
  8ed5cf3fb meson: libudev_core and udevadm should have LOG_REALM=LOG_REALM_UDEV (#7666)
  a9f93f1d0 virt: use XENFEAT_dom0 to detect the hardware domain (#6442, #6662) (#7581) (bsc#1048510)
  fe56abdf9 seccomp: arm64/x32 do not have _sysctl
  c9194fe37 seccomp: arm64 does not have mmap2
  31d9b3c32 fs-util: small tweak in chase_symlinks()
  9dd0bc7a3 meson: do not include man/meson.build if xsltproc not found
  7e29e2b07 analyze: replace --no-man with --man=no in the man page (bsc#1068251)

OBS-URL: https://build.opensuse.org/request/show/563316
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1002
2018-01-10 13:38:26 +00:00
Franck Bui
6b95030a51 Accepting request 547927 from home:fbui:systemd:Factory
- Previous change was missing an entry in the changelogs

OBS-URL: https://build.opensuse.org/request/show/547927
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1001
2017-12-04 08:04:31 +00:00