Skip to content

Commit

Permalink
Merge pull request #3194 from alexlarsson/composefs-no-hotfix
Browse files Browse the repository at this point in the history
prepare-root: Disallow hotfixes if using signed composefs images
  • Loading branch information
jmarrero authored Feb 22, 2024
2 parents 311def5 + 41fd55a commit b460d28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/switchroot/ostree-prepare-root.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,10 @@ main (int argc, char *argv[])
* with ostree admin unlock --hotfix.
* Note however that root.transient as handled above is effectively a generalization of unlock
* --hotfix.
* Also, hotfixes are incompatible with signed composefs use for security reasons.
*/
if (lstat (OTCORE_HOTFIX_USR_OVL_WORK, &stbuf) == 0)
if (lstat (OTCORE_HOTFIX_USR_OVL_WORK, &stbuf) == 0
&& !(using_composefs && composefs_config->is_signed))
{
/* Do we have a persistent overlayfs for /usr? If so, mount it now. */
const char usr_ovl_options[]
Expand Down

0 comments on commit b460d28

Please sign in to comment.