Laszlo Ersek a39b79f607 daemon/selinux-relabel: tolerate relabeling errors
Option "-C" of setfiles(8) causes setfiles(8) to exit with status 1 rather
than status 255 if it encounters relabeling errors, but no other (fatal)
error. Pass "-C" to setfiles(8) in "selinux-relabel", because we don't
want the "selinux-relabel" API to fail if setfiles(8) only encounters
relabeling errors.

(NB even without "-C", setfiles(8) continues traversing the directory
tree(s) and relabeling files across relabeling errors, so this change is
specifically about the exit status.)

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1794518
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20220511122345.14208-3-lersek@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
2022-05-11 17:02:17 +02:00
2020-03-06 19:32:32 +00:00
2022-05-11 05:26:48 +02:00
2020-03-06 19:32:32 +00:00
2022-03-14 13:38:28 +00:00
2022-03-09 09:27:19 +00:00
2022-03-09 09:28:02 +00:00
2021-04-08 11:36:40 +01:00
2021-04-09 14:27:11 +01:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00
2022-04-29 15:16:25 +01:00
2022-04-15 22:17:29 +02:00
2021-04-08 11:36:40 +01:00
2022-02-28 13:12:21 +01:00
2021-04-08 11:36:40 +01:00
2020-01-14 16:21:22 +01:00
2022-04-14 16:49:49 +01:00
2019-11-13 12:49:55 +00:00
2022-03-09 09:28:02 +00:00
2020-03-06 19:32:32 +00:00
2022-04-14 16:49:49 +01:00
2021-04-08 12:55:19 +01:00

Libguestfs is tools and a library for accessing and modifying guest
disk images.  For more information see the home page:

  http://libguestfs.org/

For discussion, development, patches, etc. please use the mailing
list:

  http://www.redhat.com/mailman/listinfo/libguestfs

To find out how to build libguestfs from source, read:

  docs/guestfs-building.pod
  http://libguestfs.org/guestfs-building.1.html
  man docs/guestfs-building.1

Copyright (C) 2009-2020 Red Hat Inc.

The library is distributed under the LGPLv2+.  The programs are
distributed under the GPLv2+.  Please see the files COPYING and
COPYING.LIB for full license information.  The examples are under a
very liberal license.
Languages
C 42.7%
OCaml 35.5%
Shell 7.1%
Makefile 4%
Perl 2.6%
Other 8%