Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Improve regex for sysext
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <itxaka@kairos.io>
  • Loading branch information
Itxaka committed Sep 5, 2024
1 parent ffbc707 commit 2c0d091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sysext.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func NewSysextCmd() *cobra.Command {
return err
}
// Only for sysext, confext not supported yet
AllowList := regexp.MustCompile(`^usr|^/usr`)
AllowList := regexp.MustCompile(`^usr/|^/usr/`)
// extract the files into the temp dir
cfg.Logger.Logger.Info().Msg("📤 Extracting archives from image layer")
err = sysext.ExtractFilesFromLastLayer(image, dir, cfg.Logger, AllowList)
Expand Down

0 comments on commit 2c0d091

Please sign in to comment.