Re: [PATCH 1/1] target: fix selinux error when systemd-modules loads the target module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



čt 15. 2. 2024 v 11:43 odesílatel Maurizio Lombardi
<mlombard@xxxxxxxxxx> napsal:
> +       /* We use the kernel credentials to access the target directory */
> +       kern_cred = prepare_kernel_cred(&init_task);
> +       if (!kern_cred) {
> +               ret = -ENOMEM;
> +               goto out;
> +       }
> +       old_cred = override_creds(kern_cred);
>         target_init_dbroot();
> +       revert_creds(old_cred);
> +       put_cred(kern_cred);
>
>

I've noticed there is a leak in the error path, I am sending a v2

Maurizio






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux