Bug 1198922 - zgrep does not support zstd compressed files
zgrep does not support zstd compressed files
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Danilo Spinella
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-04-27 08:59 UTC by Dominique Leuenberger
Modified: 2022-05-10 16:34 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Leuenberger 2022-04-27 08:59:30 UTC
openSUSE's zgrep has long been enhanced to also support other compression formats than only gz (bz2, xz and lzma)

The latest compression hype is around zstd - those files are not yet supported by our zgrep though (yes, there is zstdgrep available, but integration would be nice)
Comment 1 Dominique Leuenberger 2022-04-27 09:07:31 UTC
I have a patch ready adding support for zstd into zgrep, but that is currently blocked by AppArmor:

type=AVC msg=audit(1651050275.897:568): apparmor="DENIED" operation="open" profile="zgrep" name="/usr/bin/zstd" pid=31679 comm="zgrep" requested_mask="r" denied_mask="r" fsuid=0 ouid=0


@cboltz: can you please prepare an AppArmor update for that too?
Comment 2 Dominique Leuenberger 2022-04-27 09:10:52 UTC
gzip enhancement submitted as request id 973066

@Danilo: would be nice to also get this (incl. apparmor fix) as maintenance update out. We plan on changing some default distro package files (e.g. ARCHIVES.gz) to be zstd compressed (~110MB -> 95MB) - but existing, supported distros would be nice to be able to use zgrep on them too
Comment 3 Dominique Leuenberger 2022-04-27 10:09:20 UTC
(In reply to Dominique Leuenberger from comment #1)
> @cboltz: can you please prepare an AppArmor update for that too?

zgrep-profile-mr870.diff updated as part of request id 973084
Comment 4 OBSbugzilla Bot 2022-04-27 14:40:05 UTC
This is an autogenerated message for OBS integration:
This bug (1198922) was mentioned in
https://build.opensuse.org/request/show/973180 Factory / apparmor
Comment 5 Danilo Spinella 2022-04-27 15:20:24 UTC
(In reply to Dominique Leuenberger from comment #2)
> @Danilo: would be nice to also get this (incl. apparmor fix) as maintenance
> update out. We plan on changing some default distro package files (e.g.
> ARCHIVES.gz) to be zstd compressed (~110MB -> 95MB) - but existing,
> supported distros would be nice to be able to use zgrep on them too

Do you mean getting this feature in SLE as well?
Comment 6 Dominique Leuenberger 2022-04-27 16:09:12 UTC
(In reply to Danilo Spinella from comment #5)
> (In reply to Dominique Leuenberger from comment #2)
> > @Danilo: would be nice to also get this (incl. apparmor fix) as maintenance
> > update out. We plan on changing some default distro package files (e.g.
> > ARCHIVES.gz) to be zstd compressed (~110MB -> 95MB) - but existing,
> > supported distros would be nice to be able to use zgrep on them too
> 
> Do you mean getting this feature in SLE as well?

Preferably, YES
Comment 7 Christian Boltz 2022-04-27 19:35:48 UTC
(In reply to Dominique Leuenberger from comment #3)
> zgrep-profile-mr870.diff updated as part of request id 973084

Thanks!

(In reply to Dominique Leuenberger from comment #6)
> (In reply to Danilo Spinella from comment #5)
> > Do you mean getting this feature in SLE as well?
> 
> Preferably, YES

So far, the AppArmor package in SLE/Leap 15.4 doesn't include the zgrep profile. That said: I'm fine with submitting the current Tumbleweed package - it also has some small additional fixes that might also make sense for SLE/Leap.
(AFAIK submissions to 15.4 now get released as maintenance update, right? If so, it might make sense to wait some days if more profile updates are needed.)
Comment 10 Swamp Workflow Management 2022-05-10 16:18:06 UTC
SUSE-SU-2022:1617-1: An update that solves one vulnerability and has one errata is now available.

Category: security (important)
Bug References: 1198062,1198922
CVE References: CVE-2022-1271
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    gzip-1.10-150200.10.1
openSUSE Leap 15.3 (src):    gzip-1.10-150200.10.1
SUSE Manager Server 4.1 (src):    gzip-1.10-150200.10.1
SUSE Manager Retail Branch Server 4.1 (src):    gzip-1.10-150200.10.1
SUSE Manager Proxy 4.1 (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise Server for SAP 15-SP2 (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise Server 15-SP2-LTSS (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise Server 15-SP2-BCL (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise Realtime Extension 15-SP2 (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise Micro 5.2 (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise Micro 5.1 (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise Micro 5.0 (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise High Performance Computing 15-SP2-LTSS (src):    gzip-1.10-150200.10.1
SUSE Linux Enterprise High Performance Computing 15-SP2-ESPOS (src):    gzip-1.10-150200.10.1
SUSE Enterprise Storage 7 (src):    gzip-1.10-150200.10.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 11 Danilo Spinella 2022-05-10 16:34:20 UTC
zstd support for zgrep has been added in SLE as well, I am closing this as fixed.