SHA256
1
0
forked from pool/systemd
Commit Graph

1309 Commits

Author SHA256 Message Date
Dominique Leuenberger
61822162ec Accepting request 1069558 from Base:System
- Import commit d447802feee7752cd1756f8fa86ce2a6314ba24f (merge of v252.7)
  For a complete list of changes, visit:
  8e0a8094b8...d447802fee

- Fix return non-zero value when disabling SysVinit service(bsc#1208432)

- Correct BR from python3-jinja2 to python3-Jinja2, fixes
  dependency resolving on older distros

OBS-URL: https://build.opensuse.org/request/show/1069558
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=380
2023-03-07 15:48:32 +00:00
Dominique Leuenberger
c34d91ebee Accepting request 1068038 from Base:System
- Import commit 8e0a8094b8bbc442d262795b85ac57a37264c5fe (merge of v252.6)
  For a complete list of changes, visit:
  d87834a334...8e0a8094b8
- Drop 5000-rules-add-missing-line-continuation.patch, it's part of v252.6.
- aaa_base has stop providing /etc/sysctl.conf, cope with this change so the
  compat symlink we provide is not dangling during the build.

- Drop build requirement on libpci, it's not more needed since udev hwdb was
  introduced 11 years ago.

- Conditionalize the use of /lib/modprobe.d only on systems with split usr
  support enabled (i.e. SLE).

OBS-URL: https://build.opensuse.org/request/show/1068038
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=379
2023-03-02 22:02:53 +00:00
Dominique Leuenberger
688f3b3091 Accepting request 1062012 from Base:System
- Import commit d87834a33444b7163e741e1089e82b44af663808 (merge of v252.5)
  For a complete list of changes, visit:
  5a506d73bd...d87834a334

- Move the bash completion support for systemd-cryptenroll in udev.

- systemd-testsuite: move the integration tests in a dedicated sub directory.

- machines.target belongs to systemd-container, do its init/cleanup steps from
  the scriptlets of this sub-package.

OBS-URL: https://build.opensuse.org/request/show/1062012
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=378
2023-01-31 15:08:28 +00:00
Dominique Leuenberger
54c156c423 Accepting request 1060655 from Base:System
- Drop 1000-Revert-getty-Pass-tty-to-use-by-agetty-via-stdin.patch
  It's no more necessary since util-linux 2.38 has been released in Factory.

- Make sure we apply the presets on units shipped by systemd package

OBS-URL: https://build.opensuse.org/request/show/1060655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=377
2023-01-25 16:42:40 +00:00
Dominique Leuenberger
59b703ed39 Accepting request 1056400 from Base:System
- Add 5000-rules-add-missing-line-continuation.patch until commit
  de8409ac43f6e4596de4cecce8dbbb5f1f2a18b1 is backported to the v252 stable
  tree.

- Import commit 5a506d73bde7ba9261985f8e9ce084044a519432 (merge of v252.4)
  It includes the following fixes:
    9b75a3d050 coredump: do not allow user to access coredumps with changed uid/gid/capabilities (bsc#1205000 CVE-2022-4415)
    
  For a complete list of changes, visit:
  bf3fef9988...5a506d73bd
  Additionally, it also includes the following backports:
  - 20ca3155c5 localed: reload PID1 configuration after modifying /etc/locale.conf
  - 3538c202fd test: update TEST-73-LOCALE to define several locale settings in initial PID1 environment
- Drop 5000-coredump-adjust-whitespace.patch
       5001-coredump-do-not-allow-user-to-access-coredumps-with-.patch
  They are part of v252.4.

OBS-URL: https://build.opensuse.org/request/show/1056400
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=376
2023-01-07 16:16:19 +00:00
Dominique Leuenberger
594c8f4a91 Accepting request 1043872 from Base:System
- Fix systemd-coredump to not allow user to access coredumps with changed
  uid/gid/capabilities (bsc#1205000 CVE-2022-4415)
  Add 5000-coredump-adjust-whitespace.patch
  Add 5001-coredump-do-not-allow-user-to-access-coredumps-with-.patch

OBS-URL: https://build.opensuse.org/request/show/1043872
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=375
2022-12-20 19:20:12 +00:00
Dominique Leuenberger
8f85657945 Accepting request 1041834 from Base:System
- Import commit bf3fef99886bd977a1c7a51d20087bc8977fff44
  6372fb0cc4 btrfs-util: convert O_PATH if necessary, in btrfs quota call (bsc#1205560)
  12e68eb0e5 blockdev-util: move O_PATH fd conversion into btrfs_get_block_device_fd() to shorten things
  bb2bafdc9d btrfs-util: convert to fd_reopen_condition()
  1323232948 fd-util: add new helper fd_reopen_conditional()
- Drop 6000-Revert-tmpfiles-whenever-creating-an-inode-immediate.patch
  It's no more needed as a fix for bsc#1205560 has been queued, see above.

- Import commit 82898a14f5b0a965ba9c1efc1913fcdf29d446a8 (merge of v252.3)
  It includes the following fixes:
    9410eb20eb cryptsetup: retry TPM2 unseal operation if it fails with TPM2_RC_PCR_CHANGED (bsc#1204944)
  For a complete list of changes, visit:
  e7e931b07e...82898a14f5
  Additionally, it also includes the following backports:
  - 17b2f9f196 utmp-wtmp: fix error in case isatty() fails
  - 8d5c487c87 sd-bus: handle -EINTR return from bus_poll() (bsc#1201982)
  - 2dd217c8b5 tree-wide: modernizations with RET_NERRNO()

OBS-URL: https://build.opensuse.org/request/show/1041834
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=374
2022-12-10 20:17:36 +00:00
Dominique Leuenberger
6b65722cc1 Accepting request 1040361 from Base:System
- Don't ship symlink /usr/lib/environment.d/99-environment.conf
  anymore. /etc/environment is owned and parsed (among other config files) by
  pam_env(8), which is included by 'systemd-user' PAM service anyway.

OBS-URL: https://build.opensuse.org/request/show/1040361
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=373
2022-12-06 13:22:42 +00:00
Dominique Leuenberger
52490fab54 Accepting request 1038709 from Base:System
- Import commit e7e931b07edd786dc6ca1dae6c23ff7b785f8efd (merge of v252.2)
  For a complete list of changes, visit:
  64dc546913...e7e931b07e
- Rebase 6000-Revert-tmpfiles-whenever-creating-an-inode-immediate.patch

OBS-URL: https://build.opensuse.org/request/show/1038709
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=372
2022-11-29 09:52:27 +00:00
Dominique Leuenberger
2eea2ae3cc Accepting request 1037909 from Base:System
- Import commit 3bd3e4e6c1efe0d6df776107efde47e15e58fe96
  d28e81d65c test: fix the default timeout values described in README.testsuite
  d921c83f53 meson: install test-kernel-install only when -Dkernel-install=true
  c3b6c4b584 tests: update install_suse_systemd()
  3c77335b19 tests: install dmi-sysfs module on openSUSE
  df632130cd tests: install systemd-resolved on openSUSE
- Add 6000-Revert-tmpfiles-whenever-creating-an-inode-immediate.patch until
  upstream issue #25468 is fixed.
- Drop 6000-meson-install-test-kernel-install-only-when-Dkernel-.patch, the
  patch has been merged in the SUSE git repo.

  This includes the following bug fixes:
   - upstream commit 67c3e1f63a5221b47a8fea85ae421671f29f3b7e (bsc#1200723)

OBS-URL: https://build.opensuse.org/request/show/1037909
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=371
2022-11-25 12:11:28 +00:00
Dominique Leuenberger
709924c9fa Accepting request 1036605 from Base:System
- Reenable build of sd_boot, it was mistakenly disabled during the integration
  of v252.

OBS-URL: https://build.opensuse.org/request/show/1036605
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=370
2022-11-19 17:08:44 +00:00
Dominique Leuenberger
2ae1dfaaae Accepting request 1036151 from Base:System
- Upgrade to v252.1 (commit 64dc546913525e33e734500055a62ed0e963c227)
  See https://github.com/openSUSE/systemd/blob/SUSE/v252/NEWS for details.
  * Rebased 0001-conf-parser-introduce-early-drop-ins.patch
            1000-Revert-getty-Pass-tty-to-use-by-agetty-via-stdin.patch
  * The new tools systemd-measure and systemd-pcrphase have been added to the
    experimental sub-package for now.
  * Add temporarly
    6000-meson-install-test-kernel-install-only-when-Dkernel-.patch until this
    patch is mainstreamed.

OBS-URL: https://build.opensuse.org/request/show/1036151
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=369
2022-11-17 16:23:33 +00:00
Dominique Leuenberger
7b7e52e4d2 Accepting request 1034593 from Base:System
- Import commit 9cdd78585069b133bebcd479f3a204057ad25d76 (merge of v251.8)
  For a complete list of changes, visit:
  c212388f7d...9cdd785850

OBS-URL: https://build.opensuse.org/request/show/1034593
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=368
2022-11-10 13:21:14 +00:00
Dominique Leuenberger
bf1d5bd8be Accepting request 1031048 from Base:System
- Import commit c212388f7de8d22a3f7c22b19553548ccc0cdd15 (merge of v251.7)
  For a complete list of changes, visit:
  f78bba8d03...c212388f7d

- specfile: reindent comments

OBS-URL: https://build.opensuse.org/request/show/1031048
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=367
2022-10-27 11:53:27 +00:00
Dominique Leuenberger
371ec6bcf0 Accepting request 1030349 from Base:System
- Import commit f78bba8d037cc26c09bbdd167625b2d7fe1f5a30 (merge of v251.6)
  Beside the merge of v251.6, it also includes the following backport:
  - 07aaa898bd pstore: do not try to load all known pstore modules
  For a complete list of changes, visit:
  07aa29e394...f78bba8d03
  

- Don't create /var/lib/systemd/random-seed in %post (bsc#1181458)
  To make sure that the same seed is not replicated when installing from a
  'golden' image.
  For regular installations the random seed file is initialized by the installer
  itself (bsc#1174964). Even if it didn't, the random seed file would be created
  on first boot anyway.

- Avoid expanding of macro in comment which leads to an error on installation
  (workaround for bsc#1203847)

OBS-URL: https://build.opensuse.org/request/show/1030349
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=366
2022-10-22 12:12:42 +00:00
Richard Brown
31bf16d4f3 Accepting request 1007837 from Base:System
- Import commit 07aa29e3942fb46b0aed5405c88e8d3179ca958f (merge of v251.5)
  For a complete list of changes, visit:
  532faa39eb...07aa29e394

OBS-URL: https://build.opensuse.org/request/show/1007837
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=365
2022-10-07 23:22:40 +00:00
Dominique Leuenberger
05bd7fe51d Accepting request 1005162 from Base:System
- Drop the old band aid used during the breakage introduced by the switch of
  /tmp to tmpfs
  This was done to address the regression reported in boo#1175779 but shouldn't
  be necessary anymore since the (few) affected users should have updated
  systemd during the last 2 years.

- Move nss-systemd and nss-myhostname NSS modules into the main package

- Give the instructions to create a home directory with systemd-homed in the
  description of the systemd-experimental sub-package

OBS-URL: https://build.opensuse.org/request/show/1005162
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=364
2022-09-22 12:49:16 +00:00
Dominique Leuenberger
9277d8b349 Accepting request 1002990 from Base:System
- rc-local.service.8 belongs to the systemd-sysvcompat sub-package (bsc#1203053)

- Enable building and include libcryptsetup-plugins provided by systemd
  Now that dracut 057 has been released we can enable building libcryptsetup
  plugins. These can be used by cryptsetup to extend functionality including
  fido2, pkcs11 and tpm2 support.

- Let systemd trust the RTC for 30 years after the last update instead of 15 (bsc#1202356)
  To allow for our systems to be used in edge locations without systemd updates
  for a long time.

OBS-URL: https://build.opensuse.org/request/show/1002990
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=363
2022-09-13 13:07:51 +00:00
Dominique Leuenberger
65ac557c9c Accepting request 997974 from Base:System
- Import commit 532faa39ebaa6f56e493cc938a91a40df082b74f (merge of v251.4)
  It includes the following fixes:
  - 739d7130cb home: drop conflicted headers (bsc#1202221)
  - 8fe0c12178 glibc: Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr conflict with glibc 2.36 (bsc#1202221)
  - 0c5b7ee318 udev: allow to execute longer command line (bsc#1201766)
  For a complete list of changes, visit:
  8cd784e925...532faa39eb
- Drop 1001-statx.patch, it's no more needed.

- Add patch 1001-statx.patch based on commit 3657d3a0
  * to resolve conflicts with glibc 2.36 with <linux/fs.h>
  * add dirty hack to get in src/basic/chattr-util.h,
    src/home/homework.h, src/home/homework-fscrypt.c,
    src/home/homed-manager.c, and src/home/homework-mount.c as well
    to avoid that <linux/fs.h> does include <linux/mount.h>

- Enable oomd (bsc#1200456)
  It's part of the experimental sub-package for now.

- Import commit 8cd784e9250b38d20d8e14fccbfb211010283c79 (merge of v251.3)
  For a complete list of changes, visit:
  3291287906...8cd784e925

- Import commit 32912879062bb1595d8498b6f9c77d5acd1dc66a
  111b96ca86 logind: don't delay login for root even if systemd-user-sessions.service is not activated yet (bsc#1195059)

- Enable bpf framework

- When systemd-container is installed install tar/gpg too
  So `machinectl import-tar` always works flawlessly. systemd-container already

OBS-URL: https://build.opensuse.org/request/show/997974
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=362
2022-08-20 18:28:06 +00:00
Dominique Leuenberger
444d3c0a79 Accepting request 985448 from Base:System
Speaking with Dimstar, it should be safe doing one more SR which will be needed in Staging:I where we need rpmlintrc adjustement.

OBS-URL: https://build.opensuse.org/request/show/985448
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=361
2022-07-13 12:55:53 +00:00
Dominique Leuenberger
2dec399474 Accepting request 980104 from Base:System
- Import commit 4dbc543953eabd4c578da67ce6e2970d6f96c406 (merge of v250.6)
  For a complete list of changes, visit:
  0d950479e5...4dbc543953

OBS-URL: https://build.opensuse.org/request/show/980104
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=360
2022-06-01 15:34:18 +00:00
Dominique Leuenberger
5491fccb05 Accepting request 979799 from Base:System
- Update rpmlintrc for shlib-policy-name-error/multibuild case.

OBS-URL: https://build.opensuse.org/request/show/979799
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=359
2022-05-31 13:46:56 +00:00
Dominique Leuenberger
3b90df4353 Accepting request 975732 from Base:System
- Import commit 0d950479e58dd3af007eb3780d600a5446aac519 (merge of v250.5)
  For a complete list of changes, visit:
  736db5a59f...0d950479e5

- Call pam_loginuid when creating user@.service (bsc#1198507)
  It's a backport of upstream commit 1000522a60ceade446773c67031b47a566d4a70d.

OBS-URL: https://build.opensuse.org/request/show/975732
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=358
2022-05-10 13:11:21 +00:00
Dominique Leuenberger
5c2e02040a Accepting request 971023 from Base:System
OBS-URL: https://build.opensuse.org/request/show/971023
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=357
2022-04-22 19:53:02 +00:00
Dominique Leuenberger
303f28f4c1 Accepting request 967294 from Base:System
- Import commit e43a1b018899266b764ab81afb9c30fb417675c6
  1c229f8fc1 cryptsetup: fall back to traditional unlocking if any TPM2 operation fails
  8881f21539 cryptsetup: fix typo
  5882148902 journald: make use of CLAMP() in cache_space_refresh()
  6ee0601f73 journald: make sure journal_file_open() doesn't leave a corrupted file around after failing (bsc#1198114)
  fe928f3d49 fs-util: make sure openat_report_new() initializes return param also on shortcut
  3881af1806 fs-util: fix typos in comments
  96060b73ba journal-file: port journal_file_open() to openat_report_new()
  611d9955bb fs-util: add openat_report_new() wrapper around openat()
  f16edb41d4 network: ignore all errors in loading .network files (bsc#1197968)
  5422730a7b meson: build kernel-install man page when necessary
  45c627cfc2 build: include status of TPM2 in the feature string show by --version
- Drop 0001-meson-build-kernel-install-man-page-when-necessary.patch
  It's been merged in the SUSE git repo.

- spec: define %bootstrap with %bcond_with so it can be used with %when. Also
  re-order the meson options a bit.

- spec: make sure /lib exists when installing conf files in /lib/modprobe.d

  This includes the following bug fixes:
    - upstream commit 34357545590d4791d1acbbeb07ae8f7636e187cb (bsc#1198093)

OBS-URL: https://build.opensuse.org/request/show/967294
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=356
2022-04-07 22:27:23 +00:00
Dominique Leuenberger
9cdcd2bbdc Accepting request 966218 from Base:System
- Temporarily disable 'libcryptsetup plugins until dracut 056 is merged in
  Factory

- Add 0001-meson-build-kernel-install-man-page-when-necessary.patch
  Submitted to upstream: https://github.com/systemd/systemd/pull/22918

- Move systemd-boot and all components managing (secure) UEFI boot into udev
  sub-package: they may deserve a dedicated sub-package in the future but for
  now move them to udev so they aren't installed in systemd based containers.
- Move a bunch of components operating on (mainly block) devices into udev as
  without udev they're most likely useless.

- spec: enable 'efi' support regardless of whether sd_boot is enabled or not
  We should support EFI systems even if systemd-boot is not enabled.

OBS-URL: https://build.opensuse.org/request/show/966218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=355
2022-04-05 17:57:49 +00:00
Dominique Leuenberger
98421d8347 Accepting request 964674 from Base:System
- spec: cope with %{_modprobedir} being /lib/modprobe.d on SLE

- Add 1000-Revert-getty-Pass-tty-to-use-by-agetty-via-stdin.patch
  A temporary workaround until bsc#1197178 is resolved.

- Import commit 8ef8dfd5401ba18caec59e54a05af9f2e0d7ac65 (merge of v250.4)
  For a complete list of changes, visit:
  ca89b1d1fd...8ef8dfd540

- Import commit ca89b1d1fd1ae86cc1e763d2d01ec2806f3a4d3a
  37b683c832 journal: preserve acls when rotating user journals with NOCOW attribute set
  d043fabebc journal: when copying journal file to undo NOCOW flag, go via fd
  78c2766689 journal-file: explicitly handle file systems that do not support hole punching
  7ecfb4b098 journal-file: fix error handling of pread() in journald_file_punch_holes()
  c4946a412c journal-file: don't use pread() when determining where to append, use mmap as before
  d3fbd20628 journal: various fixes to journal_file_read_object()
  5897a8e8d4 shared: Handle filesystems that don't support hole punching in COPY_HOLES
  27746408e2 journal: Truncate file instead of punching hole in final object
  59b6130030 shared: Ensure COPY_HOLES copies trailing holes
  ac9ccba73f journal: stat journal file after truncating
  0257283444 journal: Copy holes when archiving BTRFS journal files
  26c2a9952d shared: Copy holes in sparse files in copy_bytes_full()
  6c7191dece copy: fix wrong argument passed to S_ISREG() in copy_file_fd_full()
  af0a43024d udev: 60-persistent-storage-tape.rules: handle duplicate device ID (bsc#1195529)

- Update Supplements to new format in baselibs.conf
- Fix libsystemd-shared exclusion in baselibs.conf
- Exclude new cryptsetup libraries in baselibs.conf

- systemd.spec: minor simplification by assuming that %{bootstrap} is always

OBS-URL: https://build.opensuse.org/request/show/964674
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=354
2022-03-28 14:58:41 +00:00
Dominique Leuenberger
65d268d774 https://bugzilla.opensuse.org/show_bug.cgi?id=1197309
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=353
2022-03-19 10:56:42 +00:00
Dominique Leuenberger
e8aa5c69c3 Accepting request 962458 from Base:System
- Add 1000-Revert-getty-Pass-tty-to-use-by-agetty-via-stdin.patch
  A temporary workaround until bsc#1197178 is resolved.

- Import commit 8ef8dfd5401ba18caec59e54a05af9f2e0d7ac65 (merge of v250.4)
  For a complete list of changes, visit:
  ca89b1d1fd...8ef8dfd540

- Import commit ca89b1d1fd1ae86cc1e763d2d01ec2806f3a4d3a
  37b683c832 journal: preserve acls when rotating user journals with NOCOW attribute set
  d043fabebc journal: when copying journal file to undo NOCOW flag, go via fd
  78c2766689 journal-file: explicitly handle file systems that do not support hole punching
  7ecfb4b098 journal-file: fix error handling of pread() in journald_file_punch_holes()
  c4946a412c journal-file: don't use pread() when determining where to append, use mmap as before
  d3fbd20628 journal: various fixes to journal_file_read_object()
  5897a8e8d4 shared: Handle filesystems that don't support hole punching in COPY_HOLES
  27746408e2 journal: Truncate file instead of punching hole in final object
  59b6130030 shared: Ensure COPY_HOLES copies trailing holes
  ac9ccba73f journal: stat journal file after truncating
  0257283444 journal: Copy holes when archiving BTRFS journal files
  26c2a9952d shared: Copy holes in sparse files in copy_bytes_full()
  6c7191dece copy: fix wrong argument passed to S_ISREG() in copy_file_fd_full()
  af0a43024d udev: 60-persistent-storage-tape.rules: handle duplicate device ID (bsc#1195529)

- Update Supplements to new format in baselibs.conf
- Fix libsystemd-shared exclusion in baselibs.conf
- Exclude new cryptsetup libraries in baselibs.conf

- systemd.spec: minor simplification by assuming that %{bootstrap} is always
  defined.

OBS-URL: https://build.opensuse.org/request/show/962458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=352
2022-03-18 15:41:17 +00:00
Dominique Leuenberger
aecfa91edc Accepting request 960154 from Base:System
- Fix the default target when it's been incorrectly set to one of the runlevel
  targets (bsc#1196567)
  The script 'upgrade-from-pre-210.sh' used to initialize the default target
  during migration from sysvinit to systemd. However it created symlinks to
  runlevel targets, which are deprecated and might be missing when
  systemd-sysvcompat package is not installed. If such symlinks are found the
  script now renames them to point to 'true' systemd target units.
- When migrating from sysvinit to systemd (it probably won't happen anymore),
  let's use the default systemd target, which is the graphical.target one. In
  most cases it will do the right thing anyway.

OBS-URL: https://build.opensuse.org/request/show/960154
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=351
2022-03-09 17:47:02 +00:00
Dominique Leuenberger
053f78ce40 Accepting request 957371 from Base:System
- Fix a regression caused by the split of the sysusers config files shipped by
  systemd (bsc#1196322)
  Calls to %sysusers_create were not updated accordingly.

- spec: fix dependencies for mini variants (follow-up)
  systemd-mini-container is one of the sub-package that relies systemd-mini to
  conflict with kiwi and to not be installed on real systems.

OBS-URL: https://build.opensuse.org/request/show/957371
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=350
2022-02-26 16:01:59 +00:00
Dominique Leuenberger
9e059d5169 Accepting request 956820 from Base:System
- Import commit 0bb1977021be2fc9ebfae10d766dff0b1a457f88 (merge of v249.10)
  For a complete list of changes, visit:
  b9b83c5d11...0bb1977021

- Import commit b9b83c5d11e686178ddd545862a00b33c6fdfabb
  8973cb2462 systemd-coredump: allow setting external core size to infinity (bsc#1195899 jsc#SLE-23866)

- Fix build if %_distconfdir is not defined (see bsc#1195679)

OBS-URL: https://build.opensuse.org/request/show/956820
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=349
2022-02-23 15:25:54 +00:00
Dominique Leuenberger
499a776e27 Accepting request 955799 from Base:System
- Drop enablement symlink migration support of SysV init scripts
  And let's finish reducing the support of SysV init scripts to its minimum.

- spec: fix dependencies for mini variants
  Make sure that all mini variants won't be installed in real systems and won't
  be involved when building medias with kiwi. Note that sub-packages that
  requires systemd (such as udev) don't need any special treatment since the
  specific deps are inherited from the main (mini) package.
- spec: simplify systemd-mini-doc dependencies by assuming that the doc
  sub-package can't be a build requirement for other packages.
- spec: libsystemd-mini and libudev-mini need to provide libsystemd and libudev
  respectively

- Rename systemd-sysvinit into systemd-sysvcompat
  systemd-sysvinit was probably provided to allow systems to switch from
  sysvinit to systemd by overwriting /sbin/init with a link to systemd. But this
  isn't very useful anymore due to the fact that sysvinit is not supported since
  several years. Therefore the subpackage contains now the files needed to keep
  backward compatibility with SysV init scripts (most notably sysv-generator)
  and has been renamed accordingly. The few files that are not specific to
  sysvinit (such as /bin/init) have been moved to the main package.
  Normally this new subpackage shouldn't be needed (since all packages use
  systemd unit files) unless a 3rd party application is installed and still
  relies on SysV init scripts.

- systemd.spec: explicitely turn on/off build options
  Hence a feature can't be accidentally turned on/off because its dep is pulled
  in or removed due to another feature being turned on/off.

OBS-URL: https://build.opensuse.org/request/show/955799
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=348
2022-02-19 18:21:14 +00:00
Dominique Leuenberger
d69ef23914 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=347 2022-02-07 14:30:06 +00:00
Dominique Leuenberger
2ea074e036 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=346 2022-02-07 08:27:18 +00:00
Dominique Leuenberger
8fa3c36b47 Accepting request 951595 from Base:System
- Always create systemd-network system user, even if systemd-networkd is not
  installed (bsc#1195559)

- Make more use of %{_unitdir} in files.{systemd,container}

- Installation of libnss_mymachines.so depended on %{bootstrap} but it is
  actually installed when %{with machined} is true.
- Call ldconfig when container subpackage is installed since it ships
  nss-mymachines NSS plug-in module.

- Import commit 117bd7f14aa7834d85a4306cd380d292bec04108
  1395c74be7 udevadm: cleanup-db: don't delete information for kept db entries (bsc#1194912)
  bbafc8092a udevadm: cleanup_dir: use dot_or_dot_dot()

- Drop 0006-sysv-generator-add-back-support-for-SysV-scripts-for.patch
       0009-sysv-add-back-support-for-all-virtual-facility-and-f.patch
  Given the fact that Factory no more ship SysV init scripts since several
  months, only scripts coming from 3rd party applications should remain which
  are unlikely to rely on the SUSE specifities implemented by these
  patches. This change was announced on the Factory mailing list:
  https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/3ERUP5ZZJ6PPA36L3HVN46BH6U6JL74O/

- Import commit 885e0b9126bd2cf1e3f6b147c45ec58a5550c75c
  41334be59e meson: minor cleanup
  3db0c28462 sysusers: split up systemd.conf
- Drop 0012-resolved-create-etc-resolv.conf-symlink-at-runtime.patch (bsc#1195153)
  Since v241, the patch isn't useful anymore because resolved is no more able to
  create /etc/resolv.conf symlink by itself,it runs as 'systemd-resolve'
  user. The symlink is now handled by a tmpfiles config file which is only
  installed when systemd-resolved is. The tmpfiles config file has currently a

OBS-URL: https://build.opensuse.org/request/show/951595
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=345
2022-02-06 22:54:01 +00:00
Dominique Leuenberger
49e3c4604e Accepting request 947453 from Base:System
- Move the systemd-network-generator stuff in udev package
  This generator can generate .link files and is mainly used in initrd where
  udev is mandatory.

- Restore /sbin/udevadm and /bin/systemctl (obsolete) paths when split_usr is
  true (bsc#1194519)

- Import commit 3743acbce3bd44208af453fc6dc384a1236dc83c (merge of v249.9)
  For a complete list of changes, visit:
  e2ca79dd77...3743acbce3

- Extract bits from 0008-sysv-generator-translate-Required-Start-into-a-Wants.patch
  which are not specific to the handling of 'Required-Start:' and move them into a
  new patch 0009-sysv-add-back-support-for-all-virtual-facility-and-f.patch

- Import commit e2ca79dd775d1f7d39861d57f23c43f6cd85a872 (merge of v249.8)
  For a complete list of changes, visit:
  458220239c...e2ca79dd77

- Import commit 458220239c69b8e5fe7be480929348daeccb70d1
  e95df40b09 shared/rm-rf: loop over nested directories instead of instead of recursing (CVE-2021-3997 bsc#1194178)
  078e04305d shared/rm_rf: refactor rm_rf() to shorten code a bit
  6d560d0aca shared/rm_rf: refactor rm_rf_children_inner() to shorten code a bit
  6666ff056c localectl: don't omit keymaps files that are symlinks (bsc#1191826)
- Drop the following patches as they have been merged into SUSE/v249 branch:
  5000-shared-rm_rf-refactor-rm_rf_children_inner-to-shorte.patch
  5001-shared-rm_rf-refactor-rm_rf-to-shorten-code-a-bit.patch
  5002-shared-rm-rf-loop-over-nested-directories-instead-of.patch

- Import commit 523f32df573d459551760b072cb62906f4a2cf23 (merge of v249.7)

OBS-URL: https://build.opensuse.org/request/show/947453
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=344
2022-01-21 00:25:13 +00:00
Dominique Leuenberger
81bf92596f Accepting request 945520 from Base:System
- Added patches to fix CVE-2021-3997 (bsc#1194178)
  5000-shared-rm_rf-refactor-rm_rf_children_inner-to-shorte.patch
  5001-shared-rm_rf-refactor-rm_rf-to-shorten-code-a-bit.patch
  5002-shared-rm-rf-loop-over-nested-directories-instead-of.patch
  These patches will be dropped and cherry-picked from upstream once upstream
  will commit them in their main branch.

- Import commit a54f80116ccf105dff11aef5d18dd110ebd3e8ee
  30cbebc56f tmpfiles: 'st' may have been used uninitialized
  5443654ec0 macro: add new helper RET_NERRNO()
  8d90ecc435 rm-rf: optionally fsync() after removing directory tree
  591344010d rm-rf: refactor rm_rf_children(), split out body of directory iteration loop
  8c7762c4f1 Bump the max number of inodes for /dev to a million (bsc#1192858)
  dc9476c881 journal: don't remove the flushed flag when journald is stopped
  29efc29efd TEST-10: don't attempt to write a byte to the socket
  773fb785b6 Bump the max number of inodes for /dev to 128k (bsc#1192858)

OBS-URL: https://build.opensuse.org/request/show/945520
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=343
2022-01-11 23:26:25 +00:00
Dominique Leuenberger
3e428f30bd Accepting request 943712 from Base:System
- Update systemd-user PAM service again
  Change the default implementation of pam_setcred() again, previously
  customized to run the full "auth" PAM stack and only call pam_deny.so which is
  basically the SUSE default behavior without pam_warn.so.
  This is considered safer, especially on SLE where a regression was spotted by
  QA.

- move files related to static nodes to udev

- Replace S:$n references with SOURCE$n. Makes vim * search work.

OBS-URL: https://build.opensuse.org/request/show/943712
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=342
2022-01-07 11:44:33 +00:00
Dominique Leuenberger
300b159d93 Accepting request 933100 from Base:System
- Import commit 523f32df573d459551760b072cb62906f4a2cf23 (merge of 249.7)
  For a complete list of changes, visit:
  c34c987126...523f32df57
- Import commit c34c98712600bc206919ec6ed136195f75ac1967
  f99aa40c6e TEST-12: make sure 'adm' group exist
  6c7194ff99 TEST-08: don't force ext4 for /
  dd1814b8f9 test: use kbd-mode-map we ship in one more test case
  94c5febf2a test: fix TEST-10-ISSUE-2467

- Update the dependencies of the systemd-testsuite sub-package.

OBS-URL: https://build.opensuse.org/request/show/933100
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=341
2021-11-24 22:54:17 +00:00
Dominique Leuenberger
e286d3719f Accepting request 931727 from Base:System
- Import commit 61c79e68381801428c0bc00a56b9e2e9cfa68373 (merge of 249.6)
  bcdeee7b4c virt: Support detection for ARM64 Hyper-V guests (bsc#1186071)
  [...]
  For a complete list of changes, visit:
  8521f8d22f...61c79e6838
- Drop 0001-Revert-core-Check-unit-start-rate-limiting-earlier.patch
  It's part of v249.6.

OBS-URL: https://build.opensuse.org/request/show/931727
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=340
2021-11-20 21:47:46 +00:00
Dominique Leuenberger
ab8271254f Accepting request 928747 from Base:System
- Add 0001-Revert-core-Check-unit-start-rate-limiting-earlier.patch
  Temporarly revert commit ed8fbbf1745c6a2dc0b8cd560ac8a3353f72e979
  until the regression it introduced [1] is addressed by upstream and
  a fix is released via the stable tree.
  [1] https://github.com/systemd/systemd/issues/21025

- Disable nss-systemd and translations features for the mini flavour

- Really enable libiptc for masquerading support (bsc#1191651)
  Currently used by systemd-nspawn and systemd-networkd.

- Convert systemd package to multibuild

  8de173ff93 mount-util: fix fd_is_mount_point() when both the parent and directory are network fs (bsc#1190984)
  [...]

OBS-URL: https://build.opensuse.org/request/show/928747
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=339
2021-11-08 16:23:58 +00:00
Dominique Leuenberger
f185490289 Accepting request 925519 from Base:System
- Import commit 8521f8d22fd44400289fcea03493ebd7f8b1487d (merge of v249.5)
  For a complete list of changes, visit:
  355e113ce1...8521f8d22f

- Import commit 355e113ce193e5e2d195278c57d47f9a1b00ae46
  3b4a005095 meson: add missing include directory when using xkbcommon
  4c4e642712 meson: allow extra net naming schemes to be defined during configuration (jsc#SLE-18514)
  78466e4464 meson: drop the list of valid net naming schemes
  b9a2098f9d netif-naming: inline one iterator variable
  d7fbbc5e74 Add remaining supported schemes as options for default-net-naming-scheme

- Rename %{gnu-efi} into %{sd_boot}
  Build conditionals (%bcond_with and %bcond_without) are used to
  define a specific feature of systemd. "gnu-efi" is rather an
  implemenation detail. Also not really sure what "efi" option alone
  is useful for since systemd-boot & co depends on "gnu-efi".
- Enable sd_boot support for aarch64

- Ghost own directories /var/log/journal and /var/log/journal/remote again
  rpmlint no more complain about the setgid bit, see sr#923496.

- Overwriting rootprefix= is only required when split-usr is enabled

- Rename %usrmerged into %split_usr

- Suppress PAM warning when the credentials for user@.service service
  are established (bsc#1190515)
  systemd-user PAM service needs to define a default implementation of
  pam_setcred() otherwise the fallback (defined by /etc/pam.d/other)
  is used, which consists of pam_warn.so + pam_deny.so, and will throw

OBS-URL: https://build.opensuse.org/request/show/925519
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=338
2021-10-20 18:22:38 +00:00
Dominique Leuenberger
2d3de572ba Accepting request 922217 from Base:System
- Work around rpmlint complaining about /var/log/journal shipped with setgid bit
  This setgid bit has been already reviewed in the past and wasn't a
  concern. However we want the mode/ownership adjusted by tmpfiles and
  avoid the duplication of these info in rpm.
- Don't ghost own any directories created dynamically by tmpfiles
  Again rpmlint complains but it doesn't seem to make sense to try to
  track all paths (including theirs perms, ownerships...) created
  dynamically. And 'rpm -V' is likely to report issues later with
  these paths anyway.
  This effectively partially reverts the two previous commits.

- Make sure the build process won't create /var/log/journal
- /var/log/journal/remote is owned by systemd-journal-remote

- systemd.spec: fix a bunch of rpmlint errors/warnings

- Drop systemd-logger
  This sub package was introduced in order to configure persistent
  journal and also to make sure that another syslog provider (such as
  rsyslog) couldn't be installed at the same time: each syslog
  provider conflicts with each others.
  However this mechanism didn't work since uninstalling systemd-logger
  wasn't magically turning off persistent logging because
  /var/log/journal is likely to be populated hence not removed.
  Moreover using a subpackage to configure the mode of journald was
  overkill and the usual ways (main conf file or drop-ins) should be
  preferred.

- Import commit 7a5801342fe2f53e5c2a8578d6db132c0eca2d97
  8d65ec4a66 test: wc is needed by test/units/testsuite-50.sh

OBS-URL: https://build.opensuse.org/request/show/922217
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=337
2021-10-04 16:39:17 +00:00
Dominique Leuenberger
a923caa084 Accepting request 917666 from Base:System
- Don't reexecute user manager instances on package update yet
  This can't be done until users have their user instance updated to
  the new version that supports reexecuting with SIGRTMIN+25 because
  this signal terminates the user managers for the previous versions.

- Import commit ec72db9ee0f8ce061f83624d7148ff38a5993b11
  3b1aa2f79f manager: reexecute on SIGRTMIN+25, user instances only
  fd46c81922 test: make sure to include all haveged unit files
- systemd.spec: reexec user manager instances on package updates

- Make sure the versions of both udev and systemd packages are always the same (bsc#1189480)

- Drop dependency on m4 (replaced by Jinja2)

OBS-URL: https://build.opensuse.org/request/show/917666
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=336
2021-09-11 20:24:21 +00:00
Dominique Leuenberger
f37ad01569 Accepting request 915488 from Base:System
- Configure split-usr=true only when %usrmerged is not defined

- Import commit 40bda18e346ff45132ccd6f8f8e96de78dcf3470 (merge of v249.4)
  For a complete list of changes, visit:
  7f23815a70...40bda18e34

- Rework the test (sub)package:
  - it's been renamed into 'systemd-testsuite'
  - it includes the extended tests too
  - the relevant commits have been backported to SUSE/v249 so no SUSE
    specific patch is needed to run the extended tests (see below)
  - the deps needed by the extended tests have been added
- Import commit 7f23815a706cf2b2df3eac2eb2f8220736b8f427
  ad216581b6 test: if haveged is part of initrd it needs to be installed in the image too
  088fbb71d0 test: adapt install_pam() for openSUSE
  4d631c1f0c Revert "test: adapt TEST-13-NSPAWN-SMOKE for SUSE"
  ef956eb8a2 test: on openSUSE the static linked version of busybox is named "busybox-static"
  6f7ce633b0 TEST-13-*: in busybox container sleep(1) takes a delay in seconds only
  278baaa3ec test: don't try to find BUILD_DIR when NO_BUILD is set
  3bba2f876a test: add support for NO_BUILD=1 on openSUSE
  d77cbc1b64 test: make busybox TEST-13-only dependency

- Upgrade to v249.2 (commit c0bb2fcbc26f6aacde574656159504f263916719)
  See https://github.com/openSUSE/systemd/blob/SUSE/v249/NEWS for
  details. 
  - Rebased 0002-rc-local-fix-ordering-startup-for-etc-init.d-boot.lo.patch
            0012-resolved-create-etc-resolv.conf-symlink-at-runtime.patch

- Configure split-usr=true only when %usrmerged is not defined

OBS-URL: https://build.opensuse.org/request/show/915488
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=335
2021-09-04 20:33:46 +00:00
Dominique Leuenberger
f419cd2fdd Accepting request 909721 from Base:System
- Avoid the error message when udev is updated due to udev being
  already active when the sockets are started again (bsc#1188291)

OBS-URL: https://build.opensuse.org/request/show/909721
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=334
2021-08-04 20:28:26 +00:00
Dominique Leuenberger
cff4d1a6d1 Accepting request 908417 from Base:System
- Import commit 73e9e6fb847513c6d62f2fb445778ef5bc0fe516 (merge of v248.6)
  For a complete list of changes, visit:
  cb29bcc5ef...73e9e6fb84

- Drop 0001-Revert-core-prevent-excessive-proc-self-mountinfo-pa.patch
  Commit 81107b8419c39f726fd2805517a5b9faab204e59 fixes
  https://github.com/systemd/systemd/issues/19464 which makes the
  aforementioned patch not needed anymore.

- Drop 1003-basic-unit-name-adjust-comments.patch
  It's been merged in SUSE/v248 branch

- Import commit cb29bcc5ef2c0ee659686c5d229646a6ba98ec50 (merge of v248.5)
  4a1c5f34bd basic/unit-name: do not use strdupa() on a path (bsc#1188063 CVE-2021-33910)
  [...]
  For a complete list of changes, visit:
  94efce2ee5...cb29bcc5ef
- Drop 1002-basic-unit-name-do-not-use-strdupa-on-a-path.patch as it
  was merged in v248.5.

- Import commit 94efce2ee59fca15a48ff9c232c8dd7cf930c0a0 (merge of v248.4)
  For a complete list of changes, visit:
  c0aecee593...94efce2ee5
- Drop 1001-unit-name-generate-a-clear-error-code-when-convertin.patch
  as it was merged in v248.4.

- Import commit c0aecee593511e49638579cb2b9ac8aaf1f8e6c8
  42ec1d537a login: use a hwdb entry for tagging Parallels' fb devices with 'master-of-seat' tag
  ecc7c7b462 login: use a hwdb entry for tagging HyperV's fb devices with 'master-of-seat' tag
  a4cfd70476 login: XGI Z7/Z9 (XG20 core) graphic chip requires master-of-seat to be set (bsc#1187154)

OBS-URL: https://build.opensuse.org/request/show/908417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=333
2021-08-02 10:04:37 +00:00
Dominique Leuenberger
fed1c9a7ac Accepting request 907311 from Base:System
- Added patches to fix CVE-2021-33910 (bsc#1188063)
  Added 1001-unit-name-generate-a-clear-error-code-when-convertin.patch
  Added 1002-basic-unit-name-do-not-use-strdupa-on-a-path.patch
  Added 1003-basic-unit-name-adjust-comments.patch
  These patches will be moved to the git repo once the bug will become
  public.

- systemd-hwdb-update.service should be shipped by the udev package

OBS-URL: https://build.opensuse.org/request/show/907311
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=332
2021-07-22 20:42:41 +00:00
Dominique Leuenberger
5dfe3d4e23 Accepting request 903365 from Base:System
- Finally don't create /run/lock/subsys anymore
  This effectively reverts the fix for bsc#1187292 made earlier. This
  directory is specific to RH sysvinit and since we're going to fade
  the support of SysV init script away the directory has no future.

- Enable TPM2 support

OBS-URL: https://build.opensuse.org/request/show/903365
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=331
2021-07-04 20:10:18 +00:00