From: Maurizio Lombardi <mlombard@redhat.com>
To: michael.christie@oracle.com
Cc: d.bogdanov@yadro.com, target-devel@vger.kernel.org,
martin.petersen@oracle.com, linux-scsi@vger.kernel.org,
james.bottomley@hansenpartnership.com
Subject: [PATCH 0/1] Fix SELinux denials against target driver
Date: Thu, 15 Feb 2024 11:35:07 +0100 [thread overview]
Message-ID: <20240215103508.839426-1-mlombard@redhat.com> (raw)
Steps to reproduce:
1) install the ibacm, rdma-core and targetcli
2) service ibacm start (ignore the errors)
3) Look at the dmesg, you will see an error message like
"db_root: cannot open: /etc/target"
4) Execute $ sudo ausearch -m AVC,USER_AVC -ts recent
type=AVC msg=audit(1707990698.893:610): avc: denied { read } for pid=26447
comm="systemd-modules" name="target" dev="dm-0" ino=973050 scontext=system_u:system_r:systemd_modules_load_t:s0
tcontext=system_u:object_r:targetd_etc_rw_t:s0 tclass=dir permissive=0
Fix inspired by commit 581dd69830341d299b0c097fc366097ab497d679
Maurizio Lombardi (1):
target: fix selinux error when systemd-modules loads the target module
drivers/target/target_core_configfs.c | 11 +++++++++++
1 file changed, 11 insertions(+)
--
2.39.3
next reply other threads:[~2024-02-15 10:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 10:35 Maurizio Lombardi [this message]
2024-02-15 10:35 ` [PATCH 1/1] target: fix selinux error when systemd-modules loads the target module Maurizio Lombardi
2024-02-15 14:26 ` Maurizio Lombardi
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=20240215103508.839426-1-mlombard@redhat.com \
--to=mlombard@redhat.com \
--cc=d.bogdanov@yadro.com \
--cc=james.bottomley@hansenpartnership.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=michael.christie@oracle.com \
--cc=target-devel@vger.kernel.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).