selinux/policycoreutils/setfiles
Christian Göttsche 9229f8b3b7 policycoreutils: handle argument counter of zero
The number of arguments passed to main(), argc, can be zero if the
pathname passed to execve(2) is NULL, e.g. via:

    execve("/path/to/exe", {NULL}, {NULL});

Also avoid NULL pointer dereferences on the argument value.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
2022-02-07 11:14:26 -05:00
..
ru setfiles: drop ABORT_ON_ERRORS and related code 2021-02-01 15:02:42 +01:00
Makefile setfiles/restorecon: support parallel relabeling 2021-11-23 10:03:18 +01:00
restore.c policycoreutils: Improve error message when selabel_open fails 2022-01-14 08:55:13 -06:00
restore.h setfiles/restorecon: support parallel relabeling 2021-11-23 10:03:18 +01:00
restorecon_xattr.8 setfiles: Update utilities for the new digest scheme 2019-07-27 10:39:24 +02:00
restorecon_xattr.c policycoreutils: Resolve path in restorecon_xattr 2021-02-24 10:56:57 +01:00
restorecon.8 setfiles/restorecon: support parallel relabeling 2021-11-23 10:03:18 +01:00
setfiles.8 setfiles/restorecon: support parallel relabeling 2021-11-23 10:03:18 +01:00
setfiles.c policycoreutils: handle argument counter of zero 2022-02-07 11:14:26 -05:00