compile error in ima.h when CONFIG_IMA_LSM_RULES is not set

Bug #1981380 reported by Charlotte
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Seems to be a typo strcut -> struct (upstream does not have a struct argument).

```
diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h
index 783a3b2fc826..c1d10bbd7c8a 100644
--- a/security/integrity/ima/ima.h
+++ b/security/integrity/ima/ima.h
@@ -437,7 +437,7 @@ static inline void ima_filter_rule_free(void *lsmrule)
 {
 }

-static inline int ima_filter_rule_match(strcut lsmblob *blob, u32 field, u32 op,
+static inline int ima_filter_rule_match(struct lsmblob *blob, u32 field, u32 op,
                                        void *lsmrule)
 {
        return -EINVAL;
```
---
ProblemType: Bug
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
CRDA: N/A
CasperMD5CheckResult: unknown
DistroRelease: Ubuntu 22.04
Ec2AMI: ami-0ee8244746ec5d6d4
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-west-2a
Ec2InstanceType: t2.micro
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Lsusb-t:

Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
MachineType: Xen HVM domU
Package: linux (not installed)
PciMultimedia:

ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 LANG=C.UTF-8
 SHELL=/bin/bash
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-1008-aws root=PARTUUID=6a77fd29-0842-4a2a-b312-cb1d29398c98 ro console=tty1 console=ttyS0 nvme_core.io_timeout=4294967295 panic=-1
ProcVersionSignature: Ubuntu 5.15.0-1008.10-aws 5.15.30
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-1008-aws N/A
 linux-backports-modules-5.15.0-1008-aws N/A
 linux-firmware N/A
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
Tags: jammy ec2-images
Uname: Linux 5.15.0-1008-aws x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 08/24/2006
dmi.bios.release: 4.11
dmi.bios.vendor: Xen
dmi.bios.version: 4.11.amazon
dmi.chassis.type: 1
dmi.chassis.vendor: Xen
dmi.modalias: dmi:bvnXen:bvr4.11.amazon:bd08/24/2006:br4.11:svnXen:pnHVMdomU:pvr4.11.amazon:cvnXen:ct1:cvr:sku:
dmi.product.name: HVM domU
dmi.product.version: 4.11.amazon
dmi.sys.vendor: Xen

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1981380

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Charlotte (charlotte-extrahop) wrote :

I think we can skip the apport-collect in this case? I was manually building the kernel fwiw.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Chris Guiver (guiverc) wrote (last edit ):

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

apport-collect 1981380

No linux kernel details; no release details, no architecture etc. have thus far been provided. Apport-collect will collect this information & populate fields easily.

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Charlotte (charlotte-extrahop) wrote : AudioDevicesInUse.txt

apport information

tags: added: apport-collected ec2-images jammy
description: updated
Revision history for this message
Charlotte (charlotte-extrahop) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Charlotte (charlotte-extrahop) wrote : Lspci.txt

apport information

Revision history for this message
Charlotte (charlotte-extrahop) wrote : Lspci-vt.txt

apport information

Revision history for this message
Charlotte (charlotte-extrahop) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Charlotte (charlotte-extrahop) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Charlotte (charlotte-extrahop) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Charlotte (charlotte-extrahop) wrote : ProcModules.txt

apport information

Revision history for this message
Charlotte (charlotte-extrahop) wrote : UdevDb.txt

apport information

Revision history for this message
Charlotte (charlotte-extrahop) wrote : WifiSyslog.txt

apport information

Revision history for this message
Charlotte (charlotte-extrahop) wrote : acpidump.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Charlotte (charlotte-extrahop) wrote :

added apport info (the bug is when compiling the kernel from source (https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/), it's not a runtime error)

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.