From 8344d02bda06cc81762e3cea21779fa8e47a1927 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 21 Apr 2020 06:58:55 -0400 Subject: small fixes --- etc/host.profile | 1 + etc/warzone2100.profile | 3 +++ src/profstats/main.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/etc/host.profile b/etc/host.profile index 2b78073df..e5a5a7efa 100644 --- a/etc/host.profile +++ b/etc/host.profile @@ -7,6 +7,7 @@ include host.local # Persistent global definitions include globals.local +blacklist ${RUNUSER} noblacklist ${PATH}/host include disable-common.inc diff --git a/etc/warzone2100.profile b/etc/warzone2100.profile index e33cace49..25f401d85 100644 --- a/etc/warzone2100.profile +++ b/etc/warzone2100.profile @@ -19,7 +19,10 @@ include disable-programs.inc # mkdir ${HOME}/.warzone2100-3.2 whitelist ${HOME}/.warzone2100-3.1 whitelist ${HOME}/.warzone2100-3.2 +whitelist /usr/share/games include whitelist-common.inc +include whitelist-runuser-common.inc +include whitelist-usr-share-common.inc include whitelist-var-common.inc apparmor diff --git a/src/profstats/main.c b/src/profstats/main.c index b94fdd213..a75ad8e29 100644 --- a/src/profstats/main.c +++ b/src/profstats/main.c @@ -246,6 +246,8 @@ int main(int argc, char **argv) { cnt_dotlocal = dotlocal + 1; if (cnt_globalsdotlocal > (globalsdotlocal + 1)) cnt_globalsdotlocal = globalsdotlocal + 1; + if (cnt_whitelistrunuser > (whitelistrunuser + 1)) + cnt_whitelistrunuser = whitelistrunuser + 1; if (arg_apparmor && apparmor == cnt_apparmor) printf("No apparmor found in %s\n", argv[i]); -- cgit v1.2.3-54-g00ecf