error updating chronyd.service: cpio: lsetfilecon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
New
|
Undecided
|
Unassigned | ||
CentOS |
Fix Released
|
Undecided
|
Bug Description
tracker.
This bug indicates the complexity of handling SELinux policy
upgrades WHILE INSTALLING where a change to the security policy metadata
needs to track (through what may be a netlink callback, ick) and
reopen a just changed file as part of the installation.
The better engineering (imho) is to pin down the point in time where
policy can be changed. The easiest time point to understand
is "before anything else is done" which is the %pretrans stage in
rpm's state machines. The main issue there is that %pretrans dependency
assertions are moderately difficult to accommodate if scripting
(through #!/bin/sh) is used.
The other time points that are well defined are "after everything has been installed"
with a delayed relabeling. Its also feasible to attempt "just in time labeling"
by integrating the labeling needs within RPM's topological sort (as the
Tresys patch -- so far unused in production -- @rpm.org is attempting).
Avoiding the need for dependency assertions if %pretrans is written in
shell scripts is in fact why embeddings for lua (and perl/python/
were undertaken @rpm5.org. The chosen embedding @rpm5.org development
is kavascript, but there are various advantages/
too numerous to mention, and out-of-scope for this bug report: the relevant
portion is that embedding rather than invoking /bin/sh scripts avoids the
need for dependency assertions in %pretrans).
Note that semanage embedding into @rpm5.org code has also been started, is
perhaps 50% done, with embedded javascript bindings under unit test, and
more) but there hasn't been any reason (till SELinux -> ROSA) to pursue the
ability to undertake installing SELinux policy incrementally @rpm5.org.
Changed in centos: | |
importance: | Unknown → Undecided |
status: | Unknown → Fix Released |
Description of problem: "yum update" from 3.20110831gitb0 88b7.fc16 will be an update
---> Package chrony.x86_64 0:1.26-2.fc16 will be updated
---> Package chrony.x86_64 0:1.26-
gives an error.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce: updates- testing. repo of Oct.13 (Thurs.)
1. "yum update" # from Fedora 16 beta x86_64 DVD to fedora.repo and fedora-
2.
3.
Actual results: 3.20110831gitb0 88b7.fc16 will be an update 20110831gitb088 b7.fc16 1.26-2. fc16_1. 26-3.20110831gi tb088b7. fc16.x86_ | 163 kB 00:00 1.26-3. 20110831gitb088 b7.fc16. x86_64 339/803 1.26-3. 20110831gitb088 b7.fc16. x86_64 system/ chronyd. service: cpio: lsetfilecon 1.26-3. 20110831gitb088 b7.fc16. x86_64: install failed 1.26-2. fc16.x86_ 64: erase skipped 1.26-2. fc16.x86_ 64 was supposed to be removed but is not!
---> Package chrony.x86_64 0:1.26-2.fc16 will be updated
---> Package chrony.x86_64 0:1.26-
chrony x86_64 1.26-3.
(15/210): chrony-
Updating : chrony-
Error unpacking rpm package chrony-
error: unpacking of archive failed on file /lib/systemd/
error: chrony-
error: chrony-
chrony-
Expected results: Success.
Additional info: