-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
private-etc rework: file groups moved to src/include/etc_groups.h, ne…
…w groups added
- Loading branch information
Showing
3 changed files
with
102 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/* | ||
* Copyright (C) 2014-2022 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 ETC_GROUPS_H | ||
#define ETC_GROUPS_H | ||
|
||
#define ETC_MAX 256 | ||
|
||
// DEFAULT | ||
static char *etc_list[ETC_MAX + 1] = { // plus 1 for ending NULL pointer | ||
"alternatives", | ||
"fonts", | ||
"ld.so.cache", | ||
"ld.so.conf", | ||
"ld.so.conf.d", | ||
"ld.so.preload", | ||
"locale", | ||
"locale.alias", | ||
"locale.conf", | ||
"localtime", | ||
"nsswitch.conf", | ||
"passwd", | ||
NULL | ||
}; | ||
|
||
// SOUND | ||
static char *etc_group_sound[] = { | ||
"alsa", | ||
"asound.conf", | ||
"machine-id", // required by PulseAudio | ||
"pulse", | ||
NULL | ||
}; | ||
|
||
// NETWORK | ||
static char*etc_group_network[] = { | ||
"hostname", | ||
"hosts", | ||
"resolv.conf", | ||
"protocols", | ||
NULL | ||
}; | ||
|
||
// TLS-CA | ||
static char *etc_group_tls_ca[] = { | ||
"ca-certificates", | ||
"crypto-policies", | ||
"gcrypt", | ||
"pki", | ||
"ssl", | ||
NULL | ||
}; | ||
|
||
// GUI | ||
static char *etc_group_gui[] = { | ||
"xdg", | ||
"drirc", | ||
"dconf", | ||
"gtk-2.0", | ||
"gtk-3.0", | ||
"kde4rc", | ||
"kde5rc", | ||
NULL | ||
}; | ||
|
||
// GAMES | ||
static char *etc_group_games[] = { | ||
"timidity", // MIDI | ||
"timidity.cfg", | ||
"openal", // 3D sound | ||
}; | ||
|
||
#endif |