The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
cap.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16  */
17 
18 /** Functions to deal with Linux capabilities
19  *
20  * @file src/lib/util/cap.c
21  *
22  * @author Arran Cudbard-Bell (a.cudbardb@freeradius.org)
23  * @copyright 2020 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
24  * @copyright 2020 The FreeRADIUS Server Project.
25  */
26 RCSIDH(cap_h, "$Id: f83d727dc8f835a4dd8911aad02d2a8b47c6e4c0 $")
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 #ifdef HAVE_CAPABILITY_H
33 # include <sys/capability.h>
34 # include <stdbool.h>
35 # include <freeradius-devel/util/talloc.h>
36 
37 bool fr_cap_is_enabled(cap_value_t cap, cap_flag_t set);
38 
39 int fr_cap_enable(cap_value_t cap, cap_flag_t set);
40 
41 int fr_cap_disable(cap_value_t cap, cap_flag_t set);
42 
43 ssize_t fr_cap_set_to_str(TALLOC_CTX *ctx, char **out);
44 #endif
45 
46 #ifdef __cplusplus
47 }
48 #endif
#define RCSIDH(h, id)
Definition: build.h:445
long int ssize_t
Definition: merged_model.c:24
static size_t char ** out
Definition: value.h:984