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

Fix various setuid/setgid permissions fallout #26628

Merged
merged 24 commits into from
Jun 17, 2017

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Jun 16, 2017

Motivation for this change

Fixes all packages explicitly listed as failing in #26600.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@dtzWill dtzWill changed the title WIP: Fix various setuid/setgid permissions fallout Fix various setuid/setgid permissions fallout Jun 16, 2017
Copy link
Member

@vcunat vcunat left a comment

Choose a reason for hiding this comment

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

Seems OK. Also, there's basically no rebuild impact.

preConfigure = ''
sed -e 's/getline/my_getline/' -i score.c

chmod a+rw config.h
cat >>config.h <<EOF
#define HERE "@nixos-packaged"
#define WWW 0
#define OWNER "'$(whoami)'"
#define OWNER "$(whoami)"
Copy link
Member

Choose a reason for hiding this comment

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

Running whoami isn't a good idea at all, is it's an attempt for non-determinism.

Copy link
Member

Choose a reason for hiding this comment

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

OMG, the build script checks if the user exist. I'll just leave it; it's just a game...

@vcunat vcunat merged commit 230c0d4 into NixOS:master Jun 17, 2017
vcunat added a commit that referenced this pull request Jun 17, 2017
@vcunat
Copy link
Member

vcunat commented Jun 17, 2017

Oh, the remarks.... these aren't sticky bits – sticky are odd numbers in the fourth-from-right digit in octal format.

vcunat added a commit that referenced this pull request Jul 3, 2017
(cherry picked from commit d88c0cf)
There were just a couple of conflicts, apparently someone has already
fixed rewritefs and cron on 17.03.
I re-checked that all those do build now (with a new-enough nix daemon).
@vcunat
Copy link
Member

vcunat commented Jul 3, 2017

I'll leave them even if they're wrong, as there's too much of other stuff to do...

adrianpk added a commit to adrianpk/nixpkgs that referenced this pull request May 31, 2024
(cherry picked from commit d88c0cf)
There were just a couple of conflicts, apparently someone has already
fixed rewritefs and cron on 17.03.
I re-checked that all those do build now (with a new-enough nix daemon).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants