Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable seccomp allow rule for faccessat2 for now
For some reason seccomp_syscall_resolve_name() returns __NR_SCMP_ERROR on this. Guess indicating it doesn't know about the whole thing rather that it doesn't exist for the current architecture. Anyhow as this and couple other syscalls are new additions to 3.2, we shouldn't be worse than earlier versions if we just skip it for now.
- Loading branch information
Showing
9 changed files
with
39 additions
and
7 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
2 changes: 1 addition & 1 deletion
2
rpm/0003-Prevent-tracker-extract-failing-when-seccomp-loading.patch
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
2 changes: 1 addition & 1 deletion
2
rpm/0004-Add-also-fileSize-to-the-basic-set-of-file-info-on-a.patch
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
2 changes: 1 addition & 1 deletion
2
rpm/0005-Fix-database-corruption-caused-by-the-miner-being-re.patch
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
2 changes: 1 addition & 1 deletion
2
rpm/0007-Update-nfo-fileLastModified-also-on-content-specific.patch
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
31 changes: 31 additions & 0 deletions
31
rpm/0008-Disable-seccomp-allow-rule-for-faccessat2-for-now.patch
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,31 @@ | ||
From c5683df715f26500453cc963c70b8a84366c17c3 Mon Sep 17 00:00:00 2001 | ||
From: Pekka Vuorela <pekka.vuorela@jolla.com> | ||
Date: Tue, 28 Sep 2021 14:14:13 +0300 | ||
Subject: [PATCH 8/8] Disable seccomp allow rule for faccessat2 for now | ||
|
||
For some reason seccomp_syscall_resolve_name() returns __NR_SCMP_ERROR | ||
on this. Guess indicating it doesn't know about the whole thing rather | ||
that it doesn't exist for the current architecture. | ||
|
||
Anyhow as this and couple other syscalls are new additions to 3.2, | ||
we shouldn't be worse than earlier versions if we just skip it for now. | ||
--- | ||
src/libtracker-miners-common/tracker-seccomp.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/libtracker-miners-common/tracker-seccomp.c b/src/libtracker-miners-common/tracker-seccomp.c | ||
index 47b555d65..60a0c4255 100644 | ||
--- a/src/libtracker-miners-common/tracker-seccomp.c | ||
+++ b/src/libtracker-miners-common/tracker-seccomp.c | ||
@@ -141,7 +141,7 @@ tracker_seccomp_init (void) | ||
ALLOW_RULE (statx); | ||
ALLOW_RULE (access); | ||
ALLOW_RULE (faccessat); | ||
- ALLOW_RULE (faccessat2); | ||
+// ALLOW_RULE (faccessat2); | ||
ALLOW_RULE (getdents); | ||
ALLOW_RULE (getdents64); | ||
ALLOW_RULE (readlink); | ||
-- | ||
2.31.1 | ||
|
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