Kernel doesn't compile with CONFIG_IMA

Bug #2041842 reported by Alexey Panov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Triaged
Medium
Unassigned

Bug Description

Because of typo error in function declaration kernel doesn't compile with specific configuration

Steps to reproduce:

make defconfig
./scripts/config --file .config \
                 -d SECURITY_SELINUX \
                 -e IMA
make olddefconfig
grep -E "CONFIG_IMA=|CONFIG_IMA_LSM_RULES" .config
make bzImage

Grep should return "CONFIG_IMA=y" but not "CONFIG_IMA_LSM_RULES=y"

Error:

In file included from security/integrity/ima/ima_fs.c:25:
security/integrity/ima/ima.h:440:41: error: unknown type name 'strcut'; did you mean 'struct'?
  440 | static inline int ima_filter_rule_match(strcut lsmblob *blob, u32 field, u32 op,
      | ^~~~~~
      | struct
make[3]: *** [scripts/Makefile.build:297: security/integrity/ima/ima_fs.o] Error 1
make[2]: *** [scripts/Makefile.build:560: security/integrity/ima] Error 2
make[1]: *** [scripts/Makefile.build:560: security/integrity] Error 2

Tags: patch
Revision history for this message
Alexey Panov (lexpanov) wrote :
tags: added: patch
Revision history for this message
Stefan Bader (smb) wrote :

This only applies to Jammy. Code was already revised in later series.

Changed in linux (Ubuntu Jammy):
status: New → Triaged
importance: Undecided → Medium
Changed in linux (Ubuntu):
status: New → Invalid
Revision history for this message
Alexey Panov (lexpanov) wrote :

Sorry, my bad. I was checking for commit in releases after Jammy, but not the specific code in these releases.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.