Michael Schröder
093b7580da
- Bump debugedit version (bsc#1233156) OBS-URL: https://build.opensuse.org/request/show/1223366 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=674
23 lines
761 B
Diff
23 lines
761 B
Diff
--- plugins/selinux.c.orig 2023-12-12 10:57:31.000000000 +0000
|
|
+++ plugins/selinux.c 2023-12-13 13:28:30.509647090 +0000
|
|
@@ -1,3 +1,5 @@
|
|
+#include <stdlib.h>
|
|
+
|
|
#include "system.h"
|
|
|
|
#include <selinux/selinux.h>
|
|
@@ -166,6 +168,13 @@ static rpmRC selinux_fsm_file_prepare(rp
|
|
|
|
if (conrc == 0 || (conrc < 0 && errno == EOPNOTSUPP))
|
|
rc = RPMRC_OK;
|
|
+ else {
|
|
+ char *tup = getenv("TRANSACTIONAL_UPDATE");
|
|
+ if (tup != NULL && !strncmp(tup, "true", 4)) {
|
|
+ rpmlog(RPMLOG_DEBUG, "lsetfilecon failed, will be healed upon reboot (transactional update): (%s, %s)\n", path, scon);
|
|
+ rc = RPMRC_OK;
|
|
+ }
|
|
+ }
|
|
|
|
rpmlog(loglvl(rc != RPMRC_OK), "lsetfilecon: (%d %s, %s) %s\n",
|
|
fd, path, scon, (conrc < 0 ? strerror(errno) : ""));
|