From 0992ba0b6ea4c01dee0fbcf30068e64be638162b Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 5 Apr 2018 18:40:28 -0400 Subject: user access database in /etc/firejail/firejail.users - more to come --- src/include/firejail_user.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/include/firejail_user.h (limited to 'src/include/firejail_user.h') diff --git a/src/include/firejail_user.h b/src/include/firejail_user.h new file mode 100644 index 000000000..a7d30225e --- /dev/null +++ b/src/include/firejail_user.h @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2014-2018 Firejail Authors + * + * This file is part of firejail project + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#ifndef FIREJAIL_USER_H +#define FIREJAIL_USER_H + + +// returns 1 if the user is found in the database or if the database was not created +int firejail_user_check(const char *name); + +// add a user to the database +void firejail_user_add(const char *name); + +#endif -- cgit v1.2.3-54-g00ecf