public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Georgy Yakovlev" <gyakovlev@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/librtas/
Date: Mon, 15 Nov 2021 00:41:38 +0000 (UTC)	[thread overview]
Message-ID: <1636936824.56132fca92886544d383f81dffce62f54f56b481.gyakovlev@gentoo> (raw)

commit:     56132fca92886544d383f81dffce62f54f56b481
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 15 00:35:30 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Mon Nov 15 00:40:24 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56132fca

sys-libs/librtas: revbump, add sandbox predict for /var/lock/LCK..librtas

otherwise lscpu from util-linux linked to librtas triggers sandbox
viulation

F: open_wr
S: deny
P: /var/lock/LCK..librtas
A: /var/lock/LCK..librtas
R: /run/lock/LCK..librtas
C: lscpu

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-libs/librtas/{librtas-2.0.2-r1.ebuild => librtas-2.0.2-r2.ebuild} | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys-libs/librtas/librtas-2.0.2-r1.ebuild b/sys-libs/librtas/librtas-2.0.2-r2.ebuild
similarity index 73%
rename from sys-libs/librtas/librtas-2.0.2-r1.ebuild
rename to sys-libs/librtas/librtas-2.0.2-r2.ebuild
index 61863ff24d39..f43d44b267f5 100644
--- a/sys-libs/librtas/librtas-2.0.2-r1.ebuild
+++ b/sys-libs/librtas/librtas-2.0.2-r2.ebuild
@@ -27,4 +27,8 @@ src_configure() {
 src_install() {
 	emake DESTDIR="${D}" install docdir="${EPREFIX}"/usr/share/doc/${PF}
 	find "${D}" -name '*.la' -delete || die
+	# librtas_src/syscall_rmo.c: static const char *lockfile_path = "/var/lock/LCK..librtas";
+	# this way we prevent sandbox violations in lscpu linked to rtas
+	dodir /etc/sandbox.d
+	echo 'SANDBOX_PREDICT="/run/lock/LCK..librtas"' > "${ED}"/etc/sandbox.d/50librtas || die
 }


             reply	other threads:[~2021-11-15  0:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-15  0:41 Georgy Yakovlev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-20  6:23 [gentoo-commits] repo/gentoo:master commit in: sys-libs/librtas/ Arthur Zamarin
2023-12-19 20:09 Arthur Zamarin
2022-09-19 23:26 Georgy Yakovlev
2022-09-19 23:26 Georgy Yakovlev
2022-09-19 23:26 Georgy Yakovlev
2020-12-10 12:30 Fabian Groffen
2020-12-09 19:53 Fabian Groffen
2020-11-11  7:36 Georgy Yakovlev
2020-11-11  7:36 Georgy Yakovlev
2020-11-11  7:36 Georgy Yakovlev
2020-05-12 10:08 Jeroen Roovers
2020-05-12 10:01 Jeroen Roovers
2018-12-01 12:48 Jeroen Roovers
2018-09-14  5:56 Matt Turner
2018-09-13  3:42 Matt Turner
2018-08-12 17:19 Luca Barbato
2015-11-15 21:08 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1636936824.56132fca92886544d383f81dffce62f54f56b481.gyakovlev@gentoo \
    --to=gyakovlev@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox