forked from ostreedev/ostree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Canonicalize bare-user-only perms with 0755 mask
For the flatpak use case where bare-user-only was introduced, we actually don't want to support s{u,g} id files in particular. Actually, I can't think of a reason to have anything outside of the `0755 i.e. (u=rwx,g=rx,o=rx)` mask, so that's what we do here. This will have the effect of treating existing `bare-user-only` repositories as corrupted if they have files outside of that mask, but I think we should do this now; most of the flatpak users will still be on `bare-user`, and we haven't changed the semantics of that mode yet. Note that in this patch we will also *reject* file content that doesn't match this. This is somewhat asymmetric, since we aren't similarly rejecting e.g. directory metadata. But, this will close off the biggest source of the problem for flatpak (setuid binaries). See: ostreedev#908 See: flatpak/flatpak#837
- Loading branch information
Showing
2 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters