From c4c29eb3f2ada7c92340224e486a513306cffa4a Mon Sep 17 00:00:00 2001
From: jc_gargma <jc_gargma@iserlohn-fortress.net>
Date: Thu, 8 Oct 2020 19:03:49 -0700
Subject: Fix antichamber and pandora profiles Add bannerlord profile

---
 profiles/antichamber.profile           |  9 +++++++++
 profiles/mount-and-blade-ii.profile    | 17 +++++++++++++++++
 profiles/pandora-first-contact.profile |  2 ++
 3 files changed, 28 insertions(+)
 create mode 100644 profiles/mount-and-blade-ii.profile

(limited to 'profiles')

diff --git a/profiles/antichamber.profile b/profiles/antichamber.profile
index 876ece3..09fe3ce 100644
--- a/profiles/antichamber.profile
+++ b/profiles/antichamber.profile
@@ -6,6 +6,15 @@ include globals.local
 
 whitelist ${HOME}/games/Antichamber
 read-only ${HOME}/games/Antichamber
+mkdir ${HOME}/.local/share/AlexanderBruce
+mkdir ${HOME}/.local/share/AlexanderBruce/Antichamber
+read-only ${HOME}/games/Antichamber
+whitelist ${HOME}/.local/share/AlexanderBruce/Antichamber
+
+# # Antichamber requires name_to_handle_at, but whitelisting that syscall does not work
+# # Something to do with the game being 32 bit
+#seccomp !name_to_handle_at
+ignore seccomp
 
 ignore noexec ${HOME}
 
diff --git a/profiles/mount-and-blade-ii.profile b/profiles/mount-and-blade-ii.profile
new file mode 100644
index 0000000..1a1422b
--- /dev/null
+++ b/profiles/mount-and-blade-ii.profile
@@ -0,0 +1,17 @@
+# This file is overwritten after every install/update
+# Persistent local customizations
+include mount-and-blade-ii.local
+# Persistent global definitions
+include globals.local
+
+noblacklist ${HOME}/.local/share/wineprefixes/MountAndBladeBannerlord
+whitelist ${HOME}/.local/share/wineprefixes/MountAndBladeBannerlord
+
+# MB2 requiers seccomp and ptrace
+seccomp !name_to_handle_at,!ptrace
+
+ignore memory-deny-write-execute
+
+ignore noexec ${HOME}
+
+include generic-wine-game.inc
diff --git a/profiles/pandora-first-contact.profile b/profiles/pandora-first-contact.profile
index e9303b2..e53fa31 100644
--- a/profiles/pandora-first-contact.profile
+++ b/profiles/pandora-first-contact.profile
@@ -13,6 +13,8 @@ whitelist ${HOME}/.config/Proxy Studios/Pandora
 whitelist ${HOME}/games/Pandora - First Contact
 read-only ${HOME}/games/Pandora - First Contact
 
+ignore memory-deny-write-execute
+
 ignore noexec ${HOME}
 
 include generic-game-networked.inc
-- 
cgit v1.2.1