diff options
Diffstat (limited to 'src/include/etc_groups.h')
-rw-r--r-- | src/include/etc_groups.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/src/include/etc_groups.h b/src/include/etc_groups.h new file mode 100644 index 000000000..5242c9c3b --- /dev/null +++ b/src/include/etc_groups.h | |||
@@ -0,0 +1,90 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014-2022 Firejail Authors | ||
3 | * | ||
4 | * This file is part of firejail project | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | */ | ||
20 | |||
21 | #ifndef ETC_GROUPS_H | ||
22 | #define ETC_GROUPS_H | ||
23 | |||
24 | #define ETC_MAX 256 | ||
25 | |||
26 | // DEFAULT | ||
27 | static char *etc_list[ETC_MAX + 1] = { // plus 1 for ending NULL pointer | ||
28 | "alternatives", | ||
29 | "fonts", | ||
30 | "ld.so.cache", | ||
31 | "ld.so.conf", | ||
32 | "ld.so.conf.d", | ||
33 | "ld.so.preload", | ||
34 | "locale", | ||
35 | "locale.alias", | ||
36 | "locale.conf", | ||
37 | "localtime", | ||
38 | "nsswitch.conf", | ||
39 | "passwd", | ||
40 | NULL | ||
41 | }; | ||
42 | |||
43 | // SOUND | ||
44 | static char *etc_group_sound[] = { | ||
45 | "alsa", | ||
46 | "asound.conf", | ||
47 | "machine-id", // required by PulseAudio | ||
48 | "pulse", | ||
49 | NULL | ||
50 | }; | ||
51 | |||
52 | // NETWORK | ||
53 | static char*etc_group_network[] = { | ||
54 | "hostname", | ||
55 | "hosts", | ||
56 | "resolv.conf", | ||
57 | "protocols", | ||
58 | NULL | ||
59 | }; | ||
60 | |||
61 | // TLS-CA | ||
62 | static char *etc_group_tls_ca[] = { | ||
63 | "ca-certificates", | ||
64 | "crypto-policies", | ||
65 | "gcrypt", | ||
66 | "pki", | ||
67 | "ssl", | ||
68 | NULL | ||
69 | }; | ||
70 | |||
71 | // GUI | ||
72 | static char *etc_group_gui[] = { | ||
73 | "xdg", | ||
74 | "drirc", | ||
75 | "dconf", | ||
76 | "gtk-2.0", | ||
77 | "gtk-3.0", | ||
78 | "kde4rc", | ||
79 | "kde5rc", | ||
80 | NULL | ||
81 | }; | ||
82 | |||
83 | // GAMES | ||
84 | static char *etc_group_games[] = { | ||
85 | "timidity", // MIDI | ||
86 | "timidity.cfg", | ||
87 | "openal", // 3D sound | ||
88 | }; | ||
89 | |||
90 | #endif | ||