View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008331 | Kali Linux | Feature Requests | public | 2023-05-26 10:05 | 2024-06-14 15:13 |
Reporter | schlue | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | reopened | ||
Product Version | 2023.1 | ||||
Summary | 0008331: Enable IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY in kernel config | ||||
Description | With/until kernel 6.0.0-kali6 it was possible to run kali in a secure boot ( dual boot with windows ) environment on an Alienware laptop. | ||||
Steps To Reproduce |
| ||||
IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY is marked as experimental in the kernel, so I'd be reluctant to enable it. I also think this kind of bug should better be reported on the Debian bugtracker, this is not really specific to Kali. As I understand it, it was triggered by this commit in Debian: https://salsa.debian.org/kernel-team/linux/-/commit/b44269f39234630ba08114bd48ece5e9df364841 Moreover, there's a bug on the Debian bugtracker, it seems loosely related to this issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030200. This bug led to a patch that is included in the kernel 6.1.20-2kali1 and onward. Can you check if this fixes your issue, by chance? (from your description it seems that you tested 6.1.0-kali9). Thanks! |
|
I am already on that kernel version you asked me to test. I had a look to the bug I still do not understand why it is working for the other person. I am happy to continue debugging but as it always stops in the initramfs I cannot have a look to what really happened. At this moment I am using my cellphone to record the output but that is also not good to read. So it is better to report this in the debian kernel forum ? |
|
I think on our side, we can rebuild a kernel with IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY=1 and upload it to kali-experimental. This way, you can install it and tell us if, indeed, it fixes the issue. After that, we can open the bug in Debian. I'll ping you back when the new kernel package is ready. |
|
I did more a bit more archeology in the Debian git repo for the kernel. So the IMA config was enabled back in Apr 2017: https://salsa.debian.org/kernel-team/linux/-/commit/f3c3de0f. At this time, CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY was enabled, despite being marked as experimental in the Kernel's KConfig at security/integrity/ima/Kconfig. Then CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY was disabled, in July 2017, as in fact the config was not effective, as explained in the commit message: https://salsa.debian.org/kernel-team/linux/-/commit/d6692c5a Fast-forward today: all the other configs required are enabled, so I don't see any blocker to enable this feature. Cf.
To come back to the change that caused this bug report, I suppose it's due to commit https://salsa.debian.org/kernel-team/linux/-/commit/b44269f3 that enabled CONFIG_IMA_ARCH_POLICY. This was in october 2022, before release 6.1 of the Debian kernel. It's consistent with what you said, in term of versions: for your use-case, kernel 6.0.x worked, while kernel 6.1.x didn't work anymore. |
|
@schlue The new kernel will be in the repo in a few hours, let's say by 14:00 UTC. At this point, please enable the repo kali-experimental, cf. https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/#enabling-kali-additional-branches Then run "sudo apt update" and then install the new kernel with: <pre> The command above will upgrade the kernel and kernel-related packages that are already installed on your system. NB: I didn't test the command, so pay attention to what gets upgraded !! What I expect is that the package linux-image-amd64 gets upgraded to 6.1.27-1kali2, along with many other kernel related packages. If that's the case, please upgrade, reboot, check that IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY is enabled: <pre> If all of that is good, then you can then test if it fixes your issue. |
|
Thank you I can see IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY in the config file of the experimental kernel. |
|
@schlue Did you have a chance to try this kernel, to see if that fixes the issue? |
|
@schlue Too bad we don't have anymore feedback from you ! I really would like more details, like, did you try this kernel, did that work for you, and all of that. I need this feedback before I can get in touch with the Debian maintainers and ask them to enable it in the Debian kernel. |
|
I am sorry. I haven't had enough time yet to look into all details. |
|
Ack, good to hear, no worries and no rush, I just wanted to know if you were still around :) |
|
This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity. Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)? If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup? |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2023-05-26 10:05 | schlue | New Issue | |
2023-05-29 08:12 | arnaudr | Note Added: 0018042 | |
2023-05-29 08:12 | arnaudr | Note Edited: 0018042 | |
2023-05-30 14:55 | schlue | Note Added: 0018051 | |
2023-05-31 00:38 | arnaudr | Note Added: 0018054 | |
2023-05-31 01:46 | arnaudr | Note Added: 0018055 | |
2023-05-31 01:46 | arnaudr | Note Edited: 0018055 | |
2023-05-31 09:14 | arnaudr | Note Added: 0018058 | |
2023-05-31 09:14 | arnaudr | Note Edited: 0018058 | |
2023-05-31 09:15 | arnaudr | Note Edited: 0018058 | |
2023-05-31 14:52 | g0tmi1k | Status | new => closed |
2023-05-31 14:54 | g0tmi1k | Status | closed => new |
2023-05-31 14:54 | g0tmi1k | Resolution | open => reopened |
2023-06-04 14:44 | schlue | Note Added: 0018151 | |
2023-06-06 04:12 | arnaudr | Note Added: 0018157 | |
2023-06-15 02:09 | arnaudr | Note Added: 0018184 | |
2023-06-15 20:20 | schlue | Note Added: 0018186 | |
2023-06-16 01:16 | arnaudr | Note Added: 0018187 | |
2024-06-14 15:13 | g0tmi1k | Note Added: 0019380 | |
2024-06-14 15:13 | g0tmi1k | Status | new => closed |