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

repo: Add checksum to error message opening unreadable object #1564

Closed
wants to merge 3 commits into from

Conversation

cgwalters
Copy link
Member

This would have debugged trying to do a pull as non-root from
a sysroot repository. See for example:
#1562

This would have debugged trying to do a pull as non-root from
a sysroot repository.  See for example:
ostreedev#1562
ostree --repo=repo commit -b testbranch --tree=dir=files
# We should be able to read as non-root due to CAP_DAC_OVERRIDE
ostree --repo=repo ls testbranch >/dev/null
cat >upriv.sh <<EOF
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't look used anywhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, fixup for all of these ⬇️

set -xeuo pipefail
ostree --repo=testclone
EOF
if setpriv --reuid bin --regid bin --clear-groups ostree --repo=repo cat testbranch /unreadable 2>err.txt; then
Copy link
Member

Choose a reason for hiding this comment

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

I'd be more convinced if we did the exact same cat testbranch /unreadable test also for root above. :)

touch files/unreadable
chmod 0 files/unreadable
ostree --repo=repo commit -b testbranch --tree=dir=files
# We should be able to read as non-root due to CAP_DAC_OVERRIDE
Copy link
Member

Choose a reason for hiding this comment

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

This should say "read as root", right?

@jlebon
Copy link
Member

jlebon commented Apr 30, 2018

@rh-atomic-bot r+ a2d32a2

@rh-atomic-bot
Copy link

⌛ Testing commit a2d32a2 with merge e44526b...

rh-atomic-bot pushed a commit that referenced this pull request Apr 30, 2018
This would have debugged trying to do a pull as non-root from
a sysroot repository.  See for example:
#1562

Closes: #1564
Approved by: jlebon
@rh-atomic-bot
Copy link

💔 Test failed - status-atomicjenkins

@jlebon
Copy link
Member

jlebon commented Apr 30, 2018

@rh-atomic-bot retry

@rh-atomic-bot
Copy link

⌛ Testing commit a2d32a2 with merge 5839d56...

rh-atomic-bot pushed a commit that referenced this pull request Apr 30, 2018
This would have debugged trying to do a pull as non-root from
a sysroot repository.  See for example:
#1562

Closes: #1564
Approved by: jlebon
@rh-atomic-bot
Copy link

💔 Test failed - status-atomicjenkins

@jlebon
Copy link
Member

jlebon commented May 1, 2018

@rh-atomic-bot r+ fb90b8b

@rh-atomic-bot
Copy link

⌛ Testing commit fb90b8b with merge 0e2393e...

rh-atomic-bot pushed a commit that referenced this pull request May 1, 2018
This would have debugged trying to do a pull as non-root from
a sysroot repository.  See for example:
#1562

Closes: #1564
Approved by: jlebon
@rh-atomic-bot
Copy link

💔 Test failed - status-atomicjenkins

@jlebon
Copy link
Member

jlebon commented May 1, 2018

@rh-atomic-bot retry

@rh-atomic-bot
Copy link

⌛ Testing commit fb90b8b with merge a23f437...

rh-atomic-bot pushed a commit that referenced this pull request May 1, 2018
This would have debugged trying to do a pull as non-root from
a sysroot repository.  See for example:
#1562

Closes: #1564
Approved by: jlebon
@rh-atomic-bot
Copy link

💔 Test failed - status-atomicjenkins

@jlebon
Copy link
Member

jlebon commented May 1, 2018

@rh-atomic-bot retry

@rh-atomic-bot
Copy link

⌛ Testing commit fb90b8b with merge c91cff3...

rh-atomic-bot pushed a commit that referenced this pull request May 1, 2018
This would have debugged trying to do a pull as non-root from
a sysroot repository.  See for example:
#1562

Closes: #1564
Approved by: jlebon
@rh-atomic-bot
Copy link

💔 Test failed - status-atomicjenkins

@cgwalters
Copy link
Member Author

Hm, not sure what went wrong with that one.

@rh-atomic-bot retry

@rh-atomic-bot
Copy link

⌛ Testing commit fb90b8b with merge 36ac768...

@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: jlebon
Pushing 36ac768 to master...

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.

3 participants