mbox series

[v2,0/5] selinux_restorecon(3), setfiles(8): skip relabeling errors

Message ID 20220503082326.11621-1-lersek@redhat.com (mailing list archive)
Headers show
Series selinux_restorecon(3), setfiles(8): skip relabeling errors | expand

Message

Laszlo Ersek May 3, 2022, 8:23 a.m. UTC
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1794518
v1:       https://lore.kernel.org/selinux/20220428065354.27605-1-lersek@redhat.com/

In version 2, I've picked up Daniel Burgener's R-b for patch#3, and
moved the new symbol "selinux_restorecon_get_skipped_errors" to section
LIBSELINUX_3.4 of "libselinux.map" in patch#4, according to Petr's
feedback.

Please CC me on all replies to the series; I'm not subscribed to the
SELinux mailing list. ("CONTRIBUTING.md" does not say that subscribing
is a requirement.)

Cc: "Richard W.M. Jones" <rjones@redhat.com>
Cc: Petr Lautrbach <plautrba@redhat.com>

Thanks,
Laszlo

Laszlo Ersek (5):
  setfiles: fix up inconsistent indentation
  setfiles: remove useless assignment and comment (after RHBZ#1926386)
  setfiles: remove useless "iamrestorecon" checks in option parsing
  selinux_restorecon: introduce SELINUX_RESTORECON_COUNT_ERRORS
  setfiles: introduce the -C option for distinguishing file tree walk
    errors

 libselinux/include/selinux/restorecon.h                     | 15 ++++++++
 libselinux/man/man3/selinux_restorecon.3                    | 22 +++++++++++-
 libselinux/man/man3/selinux_restorecon_get_skipped_errors.3 | 28 +++++++++++++++
 libselinux/src/libselinux.map                               |  1 +
 libselinux/src/selinux_restorecon.c                         | 34 +++++++++++++++---
 policycoreutils/setfiles/restore.c                          |  8 +++--
 policycoreutils/setfiles/restore.h                          |  4 ++-
 policycoreutils/setfiles/setfiles.8                         | 22 ++++++++++++
 policycoreutils/setfiles/setfiles.c                         | 36 +++++++++-----------
 9 files changed, 141 insertions(+), 29 deletions(-)
 create mode 100644 libselinux/man/man3/selinux_restorecon_get_skipped_errors.3


base-commit: 2a167d1156578fc29541f6fb60af65452f431aae

Comments

Petr Lautrbach May 4, 2022, 12:36 p.m. UTC | #1
Laszlo Ersek <lersek@redhat.com> writes:

> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1794518
> v1:       https://lore.kernel.org/selinux/20220428065354.27605-1-lersek@redhat.com/
>
> In version 2, I've picked up Daniel Burgener's R-b for patch#3, and
> moved the new symbol "selinux_restorecon_get_skipped_errors" to section
> LIBSELINUX_3.4 of "libselinux.map" in patch#4, according to Petr's
> feedback.
>
> Please CC me on all replies to the series; I'm not subscribed to the
> SELinux mailing list. ("CONTRIBUTING.md" does not say that subscribing
> is a requirement.)
>
> Cc: "Richard W.M. Jones" <rjones@redhat.com>
> Cc: Petr Lautrbach <plautrba@redhat.com>
>


For all 5

Acked-by: Petr Lautrbach <plautrba@redhat.com>


> Thanks,
> Laszlo
>
> Laszlo Ersek (5):
>   setfiles: fix up inconsistent indentation
>   setfiles: remove useless assignment and comment (after RHBZ#1926386)
>   setfiles: remove useless "iamrestorecon" checks in option parsing
>   selinux_restorecon: introduce SELINUX_RESTORECON_COUNT_ERRORS
>   setfiles: introduce the -C option for distinguishing file tree walk
>     errors
>
>  libselinux/include/selinux/restorecon.h                     | 15 ++++++++
>  libselinux/man/man3/selinux_restorecon.3                    | 22 +++++++++++-
>  libselinux/man/man3/selinux_restorecon_get_skipped_errors.3 | 28 +++++++++++++++
>  libselinux/src/libselinux.map                               |  1 +
>  libselinux/src/selinux_restorecon.c                         | 34 +++++++++++++++---
>  policycoreutils/setfiles/restore.c                          |  8 +++--
>  policycoreutils/setfiles/restore.h                          |  4 ++-
>  policycoreutils/setfiles/setfiles.8                         | 22 ++++++++++++
>  policycoreutils/setfiles/setfiles.c                         | 36 +++++++++-----------
>  9 files changed, 141 insertions(+), 29 deletions(-)
>  create mode 100644 libselinux/man/man3/selinux_restorecon_get_skipped_errors.3
>
>
> base-commit: 2a167d1156578fc29541f6fb60af65452f431aae
> -- 
> 2.19.1.3.g30247aa5d201
Laszlo Ersek May 5, 2022, 6:19 a.m. UTC | #2
On 05/04/22 14:36, Petr Lautrbach wrote:
> Laszlo Ersek <lersek@redhat.com> writes:
> 
>> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1794518
>> v1:       https://lore.kernel.org/selinux/20220428065354.27605-1-lersek@redhat.com/
>>
>> In version 2, I've picked up Daniel Burgener's R-b for patch#3, and
>> moved the new symbol "selinux_restorecon_get_skipped_errors" to section
>> LIBSELINUX_3.4 of "libselinux.map" in patch#4, according to Petr's
>> feedback.
>>
>> Please CC me on all replies to the series; I'm not subscribed to the
>> SELinux mailing list. ("CONTRIBUTING.md" does not say that subscribing
>> is a requirement.)
>>
>> Cc: "Richard W.M. Jones" <rjones@redhat.com>
>> Cc: Petr Lautrbach <plautrba@redhat.com>
>>
> 
> 
> For all 5
> 
> Acked-by: Petr Lautrbach <plautrba@redhat.com>

(Commit range d108226d3fc6..2b6f7e969cf6.)

Thank you!
Laszlo

> 
> 
>> Thanks,
>> Laszlo
>>
>> Laszlo Ersek (5):
>>   setfiles: fix up inconsistent indentation
>>   setfiles: remove useless assignment and comment (after RHBZ#1926386)
>>   setfiles: remove useless "iamrestorecon" checks in option parsing
>>   selinux_restorecon: introduce SELINUX_RESTORECON_COUNT_ERRORS
>>   setfiles: introduce the -C option for distinguishing file tree walk
>>     errors
>>
>>  libselinux/include/selinux/restorecon.h                     | 15 ++++++++
>>  libselinux/man/man3/selinux_restorecon.3                    | 22 +++++++++++-
>>  libselinux/man/man3/selinux_restorecon_get_skipped_errors.3 | 28 +++++++++++++++
>>  libselinux/src/libselinux.map                               |  1 +
>>  libselinux/src/selinux_restorecon.c                         | 34 +++++++++++++++---
>>  policycoreutils/setfiles/restore.c                          |  8 +++--
>>  policycoreutils/setfiles/restore.h                          |  4 ++-
>>  policycoreutils/setfiles/setfiles.8                         | 22 ++++++++++++
>>  policycoreutils/setfiles/setfiles.c                         | 36 +++++++++-----------
>>  9 files changed, 141 insertions(+), 29 deletions(-)
>>  create mode 100644 libselinux/man/man3/selinux_restorecon_get_skipped_errors.3
>>
>>
>> base-commit: 2a167d1156578fc29541f6fb60af65452f431aae
>> -- 
>> 2.19.1.3.g30247aa5d201
>