Bug 1216545 - git-web package update overrides custom app armor profile in /etc
Summary: git-web package update overrides custom app armor profile in /etc
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: AppArmor (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Danilo Spinella
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-24 18:44 UTC by Benjamin Greiner
Modified: 2024-03-25 13:56 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 Benjamin Greiner 2023-10-24 18:44:23 UTC
The git-web subpackage for 15.X provides the apparmor profile /etc/apparmor.d/usr.share.git-web.gitweb.cgi which is missing the %config directive in its specfile. Any user-configuration is lost on reinstalls.

Name           : git-web
Version        : 2.35.3-150300.10.30.1
Source package : git-2.35.3-150300.10.30.1.src

https://build.opensuse.org/package/show/SUSE:SLE-15-SP5:Update/git
Sources inherited from project SUSE:SLE-15-SP3:Update

%files web
%doc README.gitweb INSTALL.gitweb
%dir %{_sysconfdir}/apache2
%dir %{_sysconfdir}/apache2/conf.d/
%config(noreplace) %{_sysconfdir}/apache2/conf.d/gitweb.conf
%{_datadir}/gitweb
%{_sysconfdir}/apparmor.d

Should be

%config(noreplace) %{_sysconfdir}/apparmor.d/usr.share.git-web.gitweb.cgi
Comment 1 Christian Boltz 2024-02-16 20:07:42 UTC
That's a packaging bug in the git package, I'll reassign to the git maintainer.

FYI: This bug is for 15.x, but the latest Tumbleweed package also needs the profile marked as %config or %config(noreplace).
Comment 3 Danilo Spinella 2024-02-20 13:45:30 UTC
Thank you, Benjamin, for the report. I have sent requests for SLE and TW, I'll close the bug once they get accepted.
Comment 4 Maintenance Automation 2024-03-22 12:30:51 UTC
SUSE-RU-2024:0960-1: An update that has one fix can now be installed.

Category: recommended (moderate)
Bug References: 1216545
Maintenance Incident: [SUSE:Maintenance:32662](https://smelt.suse.de/incident/32662/)
Sources used:
openSUSE Leap 15.3 (src):
 git-2.35.3-150300.10.36.1
openSUSE Leap 15.5 (src):
 git-2.35.3-150300.10.36.1
SUSE Linux Enterprise Micro 5.5 (src):
 git-2.35.3-150300.10.36.1
Basesystem Module 15-SP5 (src):
 git-2.35.3-150300.10.36.1
Development Tools Module 15-SP5 (src):
 git-2.35.3-150300.10.36.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 5 Maintenance Automation 2024-03-22 12:30:52 UTC
SUSE-RU-2024:0959-1: An update that has one fix can now be installed.

Category: recommended (moderate)
Bug References: 1216545
Maintenance Incident: [SUSE:Maintenance:32663](https://smelt.suse.de/incident/32663/)
Sources used:
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src):
 git-2.26.2-150000.53.1
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src):
 git-2.26.2-150000.53.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src):
 git-2.26.2-150000.53.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 6 Danilo Spinella 2024-03-25 13:56:22 UTC
The requests have been accepted, closing.