Bug 1225946

Summary: %postrans section in python-azure-agent.spec will likely cause issues on systems with SELinux
Product: [openSUSE] openSUSE Tumbleweed Reporter: Johannes Segitz <jsegitz>
Component: Cloud:ToolsAssignee: Robert Schweikert <rjschwei>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: rjschwei
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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.