Repository navigation
Conversation
|
☔ The latest upstream changes (presumably e063754) made this pull request unmergeable. Please resolve the merge conflicts. |
207394c to
308d336
Compare
|
Rebased 🏄 |
| } | ||
|
|
||
|
|
||
| opt_context = g_option_context_new ("rpm-ostreed -- rpm-ostree daemon"); |
There was a problem hiding this comment.
This is already set above.
Also, should that string be changed to simply e.g. - rpm-ostree daemon ?
There was a problem hiding this comment.
I mean, since the executable itself will no longer be called rpm-ostreed. Though I guess the systemd service will still be the same.
|
Cool, makes sense. I don't see any disadvantages from merging them. @mbarnes, @giuseppe Any thoughts? BTW, link to log files should work now. |
|
On the other hand it doesn't actually fix anything right now, and I could imagine it makes some things worse. I don't want to close this but let's back burner it for now. |
|
☔ The latest upstream changes (presumably 81cc46d) made this pull request unmergeable. Please resolve the merge conflicts. |
308d336 to
6a762e1
Compare
|
I decided we do want this, it'll make doing multiprocessing easier. The space savings is nice too. |
The actual problem I am trying to fix with this is fallout from the introduction of `/usr/libexec/rpm-ostreed`, which required a SELinux policy change. Specifically for CentOS, the base policy is rev'd slowly. My hope was that by merging the daemon code back into `/usr/bin/rpm-ostree` which is labeled `install_exec_t`, starting via systemd would do the right thing. It turns out that doesn't happen. Now later, I'm picking this patch back up because I want to do multprocessing in the daemon (and in the core), and it makes sense to share code between them, because multiprocessing will need to go through a re-exec path. Another benefit is we avoid duplicated text (libglnx, internal helpers) between the two binaries.
6a762e1 to
11a9726
Compare
|
Reviewed 🔍 and tested. ✔️ |
|
☀️ Test successful - status-atomicjenkins |
I think this was a conceptual merge conflict from coreos#292 and coreos#598 Also I noticed we weren't consistently using `@primaryname@`... will fix that when we get back to the renaming PR.
The actual problem I am trying to fix with this is fallout from the
introduction of
/usr/libexec/rpm-ostreed, which required a SELinuxpolicy change. Specifically for CentOS, the base policy is rev'd
slowly.
My hope was that by merging the daemon code back into
/usr/bin/rpm-ostreewhich is labeled
install_exec_t, starting via systemd would dothe right thing. It turns out that doesn't happen.
I looked at PackageKit, i.e.
/usr/libexec/packagekitdwhich isactually labeled as
rpm_exec_t(rpm_tat runtime).So I think we should change SELinux policy to do that.
However - there are still benefits to this change, namely we avoid
more duplicated text (libglnx, internal helpers) between the two
binaries.