* d/p/0001-component-Grab-tmpdir-from-policy.patch:
    - Fix a regression where the sos was being created in /var/tmp instead of
      /tmp. The hard-coded value is now updated to use the policy which for
      debian defaults to /tmp.

This is a bit awkward for consumers, as it's a behaviour change in a
stable release. In particular this breaks the current cockpit-sosreport,
as that relied on the previous behaviour of defaulting to /var/tmp/ and
reading a customization of the temp dir from /etc/sos/sos.conf, i.e. the
[global][tmp-dir] setting.

This upstream behaviour of having different internal policy defaults for
Debian/RedHat/etc. *without* a way of querying where the actual tmp dir
is makes it really hard to use. I figured that it could rummage in sos'
internal APIs:

python3 -c 'import sos.policies;
print(sos.policies.load().get_tmp_dir(None))'

That gives /tmp with this new version, and /var/tmp on Fedora. But this
is also expensive (it takes about two seconds).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2114840

Title:
  [sru] sos upstream 4.9.2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sos/+bug/2114840/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to