diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/etc_groups.h | 103 | ||||
-rw-r--r-- | src/include/rundefs.h | 2 |
2 files changed, 105 insertions, 0 deletions
diff --git a/src/include/etc_groups.h b/src/include/etc_groups.h new file mode 100644 index 000000000..dca767934 --- /dev/null +++ b/src/include/etc_groups.h | |||
@@ -0,0 +1,103 @@ | |||
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 | #include <stddef.h> | ||
24 | |||
25 | #define ETC_MAX 256 | ||
26 | |||
27 | // @default | ||
28 | static char *etc_list[ETC_MAX + 1] = { // plus 1 for ending NULL pointer | ||
29 | "alternatives", | ||
30 | "fonts", | ||
31 | "group", | ||
32 | "ld.so.cache", | ||
33 | "ld.so.conf", | ||
34 | "ld.so.conf.d", | ||
35 | "ld.so.preload", | ||
36 | "locale", | ||
37 | "locale.alias", | ||
38 | "locale.conf", | ||
39 | "localtime", | ||
40 | "login.defs", // firejail reading UID/GID MIN and MAX at startup | ||
41 | "nsswitch.conf", | ||
42 | "passwd", | ||
43 | "selinux", | ||
44 | NULL | ||
45 | }; | ||
46 | |||
47 | // @games | ||
48 | static char *etc_group_games[] = { | ||
49 | "openal", // 3D sound | ||
50 | "timidity", // MIDI | ||
51 | "timidity.cfg", | ||
52 | "vulkan", // next generation OpenGL stack | ||
53 | NULL | ||
54 | }; | ||
55 | |||
56 | // @network | ||
57 | static char*etc_group_network[] = { | ||
58 | "hostname", | ||
59 | "hosts", | ||
60 | "protocols", | ||
61 | "resolv.conf", | ||
62 | NULL | ||
63 | }; | ||
64 | |||
65 | // @sound | ||
66 | static char *etc_group_sound[] = { | ||
67 | "alsa", | ||
68 | "asound.conf", | ||
69 | "machine-id", // required by PulseAudio | ||
70 | "pulse", | ||
71 | NULL | ||
72 | }; | ||
73 | |||
74 | // @tls-ca | ||
75 | static char *etc_group_tls_ca[] = { | ||
76 | "ca-certificates", | ||
77 | "crypto-policies", | ||
78 | "gcrypt", // GNU crypto library - contains hardware config for various encryption schemes | ||
79 | // and random number generators. The file is not installed by Debian. | ||
80 | "pki", | ||
81 | "ssl", | ||
82 | NULL | ||
83 | }; | ||
84 | |||
85 | // @x11 | ||
86 | static char *etc_group_x11[] = { | ||
87 | "ati", // 3D | ||
88 | "dconf", | ||
89 | "drirc", | ||
90 | "gtk-2.0", | ||
91 | "gtk-3.0", | ||
92 | "kde4rc", | ||
93 | "kde5rc", | ||
94 | "machine-id", // QT dbus lib is crashing without it! | ||
95 | "nvidia", // 3D | ||
96 | "pango", // text rendering/internationalization | ||
97 | "Trolltech.conf", // old QT config file | ||
98 | "X11", | ||
99 | "xdg", | ||
100 | NULL | ||
101 | }; | ||
102 | |||
103 | #endif | ||
diff --git a/src/include/rundefs.h b/src/include/rundefs.h index 079670f10..b3ad564ac 100644 --- a/src/include/rundefs.h +++ b/src/include/rundefs.h | |||
@@ -99,5 +99,7 @@ | |||
99 | #define RUN_UMASK_FILE RUN_MNT_DIR "/umask" | 99 | #define RUN_UMASK_FILE RUN_MNT_DIR "/umask" |
100 | #define RUN_JOIN_FILE RUN_MNT_DIR "/join" | 100 | #define RUN_JOIN_FILE RUN_MNT_DIR "/join" |
101 | #define RUN_OVERLAY_ROOT RUN_MNT_DIR "/oroot" | 101 | #define RUN_OVERLAY_ROOT RUN_MNT_DIR "/oroot" |
102 | #define RUN_RESOLVCONF_FILE RUN_MNT_DIR "/resolv.conf" | ||
103 | |||
102 | 104 | ||
103 | #endif | 105 | #endif |