Bug 13645 - Landlock Support seems to be entirely disabled
Summary: Landlock Support seems to be entirely disabled
Status: CLOSED FIXED
Alias: None
Product: IPFire
Classification: Unclassified
Component: --- (show other bugs)
Version: 2
Hardware: unspecified Unspecified
: Will affect all users Security
Assignee: Peter Müller
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-08 15:59 UTC by Michael Tremer
Modified: 2024-07-01 18:06 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tremer 2024-04-08 15:59:20 UTC
During testing Suricata 7 I can confirm that enabling Landlock Support with obviously incorrect data results in Suricata running just fine.

It seems that the kernel has this not enabled:

> [root@fw01 ipfire-2.x]# cat /sys/kernel/security/lockdown
> [none] integrity confidentiality

However, changing this to "integrity" does not seem to change anything:

> [root@fw01 ipfire-2.x]# cat /sys/kernel/security/lockdown
> none [integrity] confidentiality

We have various kernel options that seem like the enable Landlock by default. However that does not seem to be the case at all.

Please investigate if this intended behaviour. If so, we might not need to compile Landlock.

If we want to enable this by default, we will have to identify all services that might use this to prevent that we break anything when rolling out a kernel with Landlock enabled.
Comment 1 Peter Müller 2024-04-22 16:45:00 UTC
Patchset to fix this has been sent to the development mailing list:

https://patchwork.ipfire.org/project/ipfire/list/?series=4268
Comment 2 Adolf Belka 2024-05-10 19:50:25 UTC
CU186 Testing release has been issued

https://www.ipfire.org/blog/ipfire-2-29-core-update-186-is-available-for-testing
Comment 3 Adolf Belka 2024-06-23 14:37:38 UTC
Di the patchset from @Peter solve this bug in Core Update 186.

If yes then the bug can be closed as fixed.
Comment 4 Peter Müller 2024-07-01 18:06:35 UTC
This has been indeed fixed in Core Update 186.

https://www.ipfire.org/blog/ipfire-2-29-core-update-186-released