From b6b3f3b3855f07e44431fbc70f4043431c087dc6 Mon Sep 17 00:00:00 2001 From: Hartmut Knaack Date: Sat, 28 May 2022 22:08:30 +0200 Subject: kate.profile: allow common development file access Kate has grown support for software development, making it a light IDE. Some version control modules exist, and when using the Git module, a blacklist violation is reported: blacklist violation - sandbox 13902, name kate, exe git, syscall access, path /home/user/.gitconfig Including support for common development file access mitigates this violation issue. --- etc/profile-a-l/kate.profile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc/profile-a-l') diff --git a/etc/profile-a-l/kate.profile b/etc/profile-a-l/kate.profile index 8c340d536..194200f4f 100644 --- a/etc/profile-a-l/kate.profile +++ b/etc/profile-a-l/kate.profile @@ -23,6 +23,8 @@ noblacklist ${HOME}/.local/share/kxmlgui5/katepart noblacklist ${HOME}/.local/share/kxmlgui5/kateproject noblacklist ${HOME}/.local/share/kxmlgui5/katesearch +include allow-common-devel.inc + include disable-common.inc # include disable-devel.inc include disable-exec.inc -- cgit v1.2.3-54-g00ecf From b2312445609f382d2a0eb1eafcaa1445c8a40ff3 Mon Sep 17 00:00:00 2001 From: Hartmut Knaack Date: Sat, 28 May 2022 22:09:15 +0200 Subject: kate.profile: enable bash completion in terminal A side effect of including disable-common.inc is loosing access to /etc/profile.d, where Bash completion is located. Explicitly enable access to console scripts in /etc/profile.d, so that Kate's built-in Konsole instance can be used without limitations. Minor side effect: the spawned Bash tries to access /etc/init.d blacklist violation - sandbox 17317, name kate, exe bash, syscall stat, path /etc/init.d --- etc/profile-a-l/kate.profile | 1 + 1 file changed, 1 insertion(+) (limited to 'etc/profile-a-l') diff --git a/etc/profile-a-l/kate.profile b/etc/profile-a-l/kate.profile index 194200f4f..7793c3f0a 100644 --- a/etc/profile-a-l/kate.profile +++ b/etc/profile-a-l/kate.profile @@ -22,6 +22,7 @@ noblacklist ${HOME}/.local/share/kxmlgui5/kateopenheaderplugin noblacklist ${HOME}/.local/share/kxmlgui5/katepart noblacklist ${HOME}/.local/share/kxmlgui5/kateproject noblacklist ${HOME}/.local/share/kxmlgui5/katesearch +noblacklist /etc/profile.d include allow-common-devel.inc -- cgit v1.2.3-54-g00ecf From a934eb1c5d3efb417cc24e51a2cc55603bb39307 Mon Sep 17 00:00:00 2001 From: Hartmut Knaack Date: Sat, 28 May 2022 22:09:48 +0200 Subject: kate.profile: allow access to kwinrc When starting Kate, a blacklist violation from accessing the kwinrc config file is reported. As a KDE application, it should be fine for Kate to access it. blacklist violation - sandbox 13410, name kate, exe kate, syscall access, path /home/user/.config/kwinrc --- etc/profile-a-l/kate.profile | 1 + 1 file changed, 1 insertion(+) (limited to 'etc/profile-a-l') diff --git a/etc/profile-a-l/kate.profile b/etc/profile-a-l/kate.profile index 7793c3f0a..438dfbf07 100644 --- a/etc/profile-a-l/kate.profile +++ b/etc/profile-a-l/kate.profile @@ -14,6 +14,7 @@ noblacklist ${HOME}/.config/katerc noblacklist ${HOME}/.config/kateschemarc noblacklist ${HOME}/.config/katesyntaxhighlightingrc noblacklist ${HOME}/.config/katevirc +noblacklist ${HOME}/.config/kwinrc noblacklist ${HOME}/.local/share/kate noblacklist ${HOME}/.local/share/kxmlgui5/kate noblacklist ${HOME}/.local/share/kxmlgui5/katefiletree -- cgit v1.2.3-54-g00ecf From 759b496fd242de708ac277b3bc1c39202ea7d568 Mon Sep 17 00:00:00 2001 From: Hartmut Knaack Date: Sat, 28 May 2022 22:10:02 +0200 Subject: kate.profile: drop tracelog When starting kate and loading into a session containing a git repository, tracelog caused about 30 seconds of delay until the project structure appeared in the projects sidebar. Error message on console: QProcess: Destroyed while process ("/usr/bin/git") is still running. Drop tracelog to mitigate the delay and error message. --- etc/profile-a-l/kate.profile | 1 - 1 file changed, 1 deletion(-) (limited to 'etc/profile-a-l') diff --git a/etc/profile-a-l/kate.profile b/etc/profile-a-l/kate.profile index 438dfbf07..9eadaec12 100644 --- a/etc/profile-a-l/kate.profile +++ b/etc/profile-a-l/kate.profile @@ -52,7 +52,6 @@ novideo protocol unix seccomp shell none -tracelog # private-bin kate,kbuildsycoca4,kdeinit4 private-dev -- cgit v1.2.3-54-g00ecf