From 2ed2441ab6eb3d02d93cdfd09e4477c63d848667 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 31 Oct 2019 08:36:44 +0000 Subject: Handle the TAL files in the master process and pass them as buffer to the parser process. This way the parser never needs to read outside of the cache directory which makes the unveil simpler. Additionally rsync_uri_parse no longer needs to know about .tal files so there is now no chance to sneak in a .tal file later on. OK deraadt@ --- usr.sbin/rpki-client/rsync.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr.sbin/rpki-client/rsync.c') diff --git a/usr.sbin/rpki-client/rsync.c b/usr.sbin/rpki-client/rsync.c index a503390577d..0e54680a8ff 100644 --- a/usr.sbin/rpki-client/rsync.c +++ b/usr.sbin/rpki-client/rsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsync.c,v 1.6 2019/06/19 16:30:37 deraadt Exp $ */ +/* $OpenBSD: rsync.c,v 1.7 2019/10/31 08:36:43 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -129,8 +129,6 @@ rsync_uri_parse(const char **hostp, size_t *hostsz, *rtypep = RTYPE_CER; else if (strcasecmp(path + sz - 4, ".crl") == 0) *rtypep = RTYPE_CRL; - else if (strcasecmp(path + sz - 4, ".tal") == 0) - *rtypep = RTYPE_TAL; } return 1; -- cgit v1.2.3