Fixes an init segfault introduced in change I81070ea36fd7ffcab4ee8b3ef1bb0028d4b7839c ("chown -R"). The call to fts_open assumes that argv is NULL-terminated, but init parser does not NULL-terminate argv arrays, so we can not just point fts_open to an argv suffix. --- init/builtins.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/init/builtins.c b/init/builtins.c index ab839af..693ff14 100644 --- a/init/builtins.c +++ b/init/builtins.c @@ -672,7 +672,7 @@ int do_chown(int nargs, char **args) { char *options = args[1]; uid_t uid = decode_uid(args[2]); uid_t gid = decode_uid(args[3]); - char **path_argv = &args[4]; + char * path_argv[] = {args[4], NULL}; if (strcmp(options, "-R")) { ERROR("do_chown: Invalid argument: %s\n", args[1]); return -EINVAL; -- 1.7.1 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.