Vegard Nossum 037ba8c484 Revert "scsi: target: Fix SELinux error when systemd-modules loads the target module"
This reverts commit 89b804f254ae731be5f86e671b3ac126f2f452a8.

As Dan points out, our backport is incorrect:

> This backport is weird. The creds stuff was supposed to protect
> target_init_dbroot(), but now it just changes the creds and then changes
> it back for no reason. It does call target_xcopy_release_pt() in the
> error handling. I don't see how that's related to the creds, so maybe
> that's a separate bug fix?

We don't have the target_init_dbroot() call there, so changing the creds
just to change them back immediately is useless. Revert this commit.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
2024-08-08 15:07:35 +00:00
..