Project

General

Profile

Actions

Bug #34523

open

pulpcore-selinux does not change file labels at install time

Added by Michael DePaulo about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
RPMs
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

This logic was broken by the python3-pulpcore packages for EL7 and EL8 being renamed:
https://github.com/theforeman/pulpcore-packaging/blob/rpm/3.16/packages/pulpcore-selinux/pulpcore-selinux.spec#L63
```
/sbin/fixfiles -R python3-pulpcore restore || :
```

This produces an error (with return code 0) during pulpcore-selinux being installed/upgraded, and it probably leaves files on disk with incorrect labels.
```
yum yum install tfm-pulpcore-python3-pulpcore pulpcore-selinux
...
Installing : pulpcore-selinux-1.2.6-2.el7.x86_64 73/73
python3-pulpcore not found
```
```
[root@centos-7 /]# /sbin/fixfiles -R python3-pulpcore restore
Warning: Skipping the following R/O filesystems:
/sys /sys/fs/cgroup
python3-pulpcore not found
[root@centos-7 /]# echo $?
0
```

No data to display

Actions

Also available in: Atom PDF