From e5f0f33832b6dbef1e69fb3760b661a60261b386 Mon Sep 17 00:00:00 2001 From: obarun <eric@obarun.org> Date: Sat, 15 Oct 2022 20:28:26 +1100 Subject: [PATCH] add the headers file for sanitize functions --- src/include/66/sanitize.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/include/66/sanitize.h diff --git a/src/include/66/sanitize.h b/src/include/66/sanitize.h new file mode 100644 index 00000000..5b56deae --- /dev/null +++ b/src/include/66/sanitize.h @@ -0,0 +1,33 @@ +/* + * sanitize.h + * + * Copyright (c) 2018-2021 Eric Vidal <eric@obarun.org> + * + * All rights reserved. + * + * This file is part of Obarun. It is subject to the license terms in + * the LICENSE file found in the top-level directory of this + * distribution. + * This file may not be copied, modified, propagated, or distributed + * except according to the terms contained in the LICENSE file./ + */ + +#ifndef SS_SANITIZE_H +#define SS_SANITIZE_H + +#include <stdint.h> + +#include <66/service.h> +#include <66/ssexec.h> + +extern int sanitize_system(ssexec_t *info) ; + +extern void sanitize_source(char const *name, ssexec_t *info, uint32_t flag) ; +extern void sanitize_fdholder(resolve_service_t *res, uint32_t flag) ; +extern void sanitize_livestate(resolve_service_t *res, uint32_t flag) ; +extern void sanitize_scandir(resolve_service_t *res, uint32_t flag) ; +extern void sanitize_init(unsigned int *alist, unsigned int alen, graph_t *g, resolve_service_t *ares, unsigned int areslen, uint32_t flags) ; + +extern int sanitize_backup(resolve_service_t *res, uint32_t flag) ; + +#endif -- GitLab