diff options
author | Maurizio Lombardi <[email protected]> | 2024-02-15 15:39:43 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2024-04-05 21:37:54 -0400 |
commit | 97a54ef596c3fd24ec2b227ba8aaf2cf5415e779 (patch) | |
tree | d381038173f7a8000bc17ed533f9b3567058a628 /scripts/generate_rust_analyzer.py | |
parent | d4e655c49f474deffaf5ed7e65034b8167ee39c8 (diff) |
scsi: target: Fix SELinux error when systemd-modules loads the target module
If the systemd-modules service loads the target module, the credentials of
that userspace process will be used to validate the access to the target db
directory. SELinux will prevent it, reporting an error like the following:
kernel: audit: type=1400 audit(1676301082.205:4): avc: denied { read }
for pid=1020 comm="systemd-modules" name="target" dev="dm-3"
ino=4657583 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 the error by using the kernel credentials to access the db directory
Signed-off-by: Maurizio Lombardi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions