Title: Remove need for running test suite as root · Issue #15 · clearlinux/bsdiff · GitHub
Open Graph Title: Remove need for running test suite as root · Issue #15 · clearlinux/bsdiff
X Title: Remove need for running test suite as root · Issue #15 · clearlinux/bsdiff
Description: After the bspatch program applies a delta to FILE1 to produce FILE2, it runs chmod(2) and chown(2) to set permissions and ownership for FILE2 according to the metadata in the delta file. This behavior is a convenience for some use cases....
Open Graph Description: After the bspatch program applies a delta to FILE1 to produce FILE2, it runs chmod(2) and chown(2) to set permissions and ownership for FILE2 according to the metadata in the delta file. This behav...
X Description: After the bspatch program applies a delta to FILE1 to produce FILE2, it runs chmod(2) and chown(2) to set permissions and ownership for FILE2 according to the metadata in the delta file. This behav...
Opengraph URL: https://github.com/clearlinux/bsdiff/issues/15
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove need for running test suite as root","articleBody":"After the `bspatch` program applies a delta to *FILE1* to produce *FILE2*, it runs `chmod(2)` and `chown(2)` to set permissions and ownership for *FILE2* according to the metadata in the delta file.\r\n\r\nThis behavior is a convenience for some use cases. For example, consumers of the delta files (like `swupd` from [swupd-client](https://github.com/clearlinux/swupd-client)) do not have to bother running the ownership/permission modifications on *FILE2* after an update.\r\n\r\nBut from a testing perspective, requiring root privileges to apply delta files is an inconvenience when those delta files specify to change ownership to an arbitrary user ID and group ID, and the user running the test suite might lack privileges to carry out the operation.\r\n\r\nTo sidestep the root requirement, it would be nice to either make the `chmod(2)` and `chown(2)` calls optional in some way, or add a mechanism to hotpatch delta files on-the-fly to set the user/group ID to the effective user/group ID of the calling process, specifically for the test suite.","author":{"url":"https://github.com/phmccarty","@type":"Person","name":"phmccarty"},"datePublished":"2021-02-04T07:31:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/15/bsdiff/issues/15"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9381ea6f-e552-e289-d414-a6b398084aa5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99EC:3E67B6:223C085:2E66D7C:69807F6E |
| html-safe-nonce | 8a99fa7b93555885db3b4db02b8b1a079f9628b03a6386108e4fec48593f2a70 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUVDOjNFNjdCNjoyMjNDMDg1OjJFNjZEN0M6Njk4MDdGNkUiLCJ2aXNpdG9yX2lkIjoiNjM4MjI3NzIyNDM0MjgxMzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e8b48823c8d7699df429c20693439935df3004484e8a6fd40d500cbec2a68f0d |
| hovercard-subject-tag | issue:801014729 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/clearlinux/bsdiff/15/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6dbe7ff875793a2b505097c2d6ef2e3128642231109c529ab5e971eca0b06909/clearlinux/bsdiff/issues/15 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6dbe7ff875793a2b505097c2d6ef2e3128642231109c529ab5e971eca0b06909/clearlinux/bsdiff/issues/15 |
| og:image:alt | After the bspatch program applies a delta to FILE1 to produce FILE2, it runs chmod(2) and chown(2) to set permissions and ownership for FILE2 according to the metadata in the delta file. This behav... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | phmccarty |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4590f1c00c56e5b3a3460b81e4236454a157a2159793b09a2ddee090670e75fb |
| turbo-cache-control | no-preview |
| go-import | github.com/clearlinux/bsdiff git https://github.com/clearlinux/bsdiff.git |
| octolytics-dimension-user_id | 12545216 |
| octolytics-dimension-user_login | clearlinux |
| octolytics-dimension-repository_id | 51865525 |
| octolytics-dimension-repository_nwo | clearlinux/bsdiff |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51865525 |
| octolytics-dimension-repository_network_root_nwo | clearlinux/bsdiff |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 242fda17fe105562f9eb7fe91a7a0dca07c527b3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width