Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trousers: 0.3.14 -> 0.3.15 #110897

Merged
merged 1 commit into from Apr 24, 2021
Merged

trousers: 0.3.14 -> 0.3.15 #110897

merged 1 commit into from Apr 24, 2021

Conversation

LeSuisse
Copy link
Contributor

Motivation for this change

Fix CVE-2020-24332, CVE-2020-24330 and CVE-2020-24331.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Result of nixpkgs-review run on x86_64-linux 1

3 packages marked as broken and skipped:
  • chaps
  • gnutls-kdh
  • tlspool
10 packages built:
  • opencryptoki
  • pond
  • simpleTpmPk11
  • strongswanTNC
  • tboot
  • tpm-luks
  • tpm-quote-tools
  • tpm-tools
  • tpmmanager
  • trousers

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 110897 run on x86_64-linux 1

3 packages marked as broken and skipped:
  • chaps
  • gnutls-kdh
  • tlspool
10 packages built:
  • opencryptoki
  • pond
  • simpleTpmPk11
  • strongswanTNC
  • tboot
  • tpm-luks
  • tpm-quote-tools
  • tpm-tools
  • tpmmanager
  • trousers

Comment on lines 8 to +13
+#ifndef ALLOW_NON_TSS_CONFIG_FILE
/* make sure user/group TSS owns the conf file */
if (pw->pw_uid != stat_buf.st_uid || grp->gr_gid != stat_buf.st_gid) {
if (stat_buf.st_uid != 0 || grp->gr_gid != stat_buf.st_gid) {
LogError("TCSD config file (%s) must be user/group %s/%s", tcsd_config_file,
@@ -775,6 +776,7 @@
LogError("TCSD config file (%s) must be mode 0600", tcsd_config_file);
LogError("TCSD config file (%s) must be mode 0640", tcsd_config_file);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this should be upstreamed, there's nothing nixos specific

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.
It looks like it's this way since the introduction of the package in nixpkgs (#2129). Maybe @alexanderkjeldaas knows why the patch has not been upstreamed?

This probably should be not a blocker to pull in the fixes for the security issues though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is exposed in a module, we can align the user so that it's the same when being used.

@lukegb lukegb merged commit 9839cda into NixOS:master Apr 24, 2021
@LeSuisse LeSuisse deleted the trousers-0.3.15 branch April 25, 2021 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants