blob: e4792090952d4e0d2edc8966b8c8c974224d810f [file] [log] [blame] [raw]
/*
Copyright 2015-2025 Rivoreo
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
struct word_list;
#define ADJUST 0
#define ALLOW_OTHER 1
#define DENY_OTHER 2
#define BASIC_SET 3
#define EFFECTIVE_SET (1 << 0)
#define INHERITABLE_SET (1 << 1)
#define PERMITTED_SET (1 << 2)
extern int get_privileges(char ***, char ***, unsigned int *);
extern int get_all_privileges(char ***, char **, char ***, unsigned int *, const struct word_list *);
extern int set_privileges(const struct word_list *, int, int);
extern int is_in_list_ignore_case(const struct word_list *, const char *);