From 163c76c9305e6fee91dad8a3004f77020000ef96 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 6 Oct 2015 12:32:31 +0200 Subject: activate: validate fdname when accepting it --- src/activate/activate.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/activate/activate.c b/src/activate/activate.c index 6a8432314e..4ece1367c1 100644 --- a/src/activate/activate.c +++ b/src/activate/activate.c @@ -361,6 +361,11 @@ static int parse_argv(int argc, char *argv[]) { break; case ARG_FDNAME: + if (!fdname_is_valid(optarg)) { + log_error("File descriptor name %s is not valid, refusing.", optarg); + return -EINVAL; + } + arg_fdname = optarg; break; -- cgit v1.2.3-54-g00ecf