Bug 1225946 - %postrans section in python-azure-agent.spec will likely cause issues on systems with SELinux
Summary: %postrans section in python-azure-agent.spec will likely cause issues on syst...
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Cloud:Tools (show other bugs)
Version: Current
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Robert Schweikert
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-04 15:09 UTC by Johannes Segitz
Modified: 2024-07-12 20:20 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 Johannes Segitz 2024-06-04 15:09:27 UTC
249 %posttrans
250 # Do not clobber the config if it was installed from a config package, but
251 # put the oldfile back if we do not have another config file
252 if [ ! -e /etc/waagent.conf ]; then
253     if [ -e /etc/waagent.conf.bak ]; then
254         mv /etc/waagent.conf.bak /etc/waagent.conf
255     # Making the assumption that the rpmsave file was generated because of
256     # of the previously broken package upgrade.
257     elif [ -e /etc/waagent.conf.rpmsave ]; then
258         cp /etc/waagent.conf.rpmsave /etc/waagent.conf
259     fi
260 fi

the temp files might not have the proper types. Use
mv -Z
to move the files to ensure they get correctly labeled
Comment 3 Maintenance Automation 2024-06-25 16:30:20 UTC
SUSE-RU-2024:2215-1: An update that has one fix can now be installed.

Category: recommended (moderate)
Bug References: 1225946
Maintenance Incident: [SUSE:Maintenance:34179](https://smelt.suse.de/incident/34179/)
Sources used:
openSUSE Leap 15.5 (src):
 python-azure-agent-2.9.1.1-150100.3.37.3
openSUSE Leap 15.6 (src):
 python-azure-agent-2.9.1.1-150100.3.37.3
Public Cloud Module 15-SP2 (src):
 python-azure-agent-2.9.1.1-150100.3.37.3
Public Cloud Module 15-SP3 (src):
 python-azure-agent-2.9.1.1-150100.3.37.3
Public Cloud Module 15-SP4 (src):
 python-azure-agent-2.9.1.1-150100.3.37.3
Public Cloud Module 15-SP5 (src):
 python-azure-agent-2.9.1.1-150100.3.37.3
Public Cloud Module 15-SP6 (src):
 python-azure-agent-2.9.1.1-150100.3.37.3
SUSE Linux Enterprise Micro 5.2 (src):
 python-azure-agent-2.9.1.1-150100.3.37.3
SUSE Linux Enterprise Micro for Rancher 5.2 (src):
 python-azure-agent-2.9.1.1-150100.3.37.3

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.