č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