Bug 1179894 - warnings in OBS builds from kernel+initrd about "Warning: running kernel does not support fscaps"
warnings in OBS builds from kernel+initrd about "Warning: running kernel does...
Status: NEW
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: openSUSE Kernel Bugs
E-mail List
:
Depends on: 1178401
Blocks:
  Show dependency treegraph
 
Reported: 2020-12-10 14:02 UTC by Oliver Kurz
Modified: 2022-01-28 11:18 UTC (History)
7 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Kurz 2020-12-10 14:02:01 UTC
+++ This bug was initially created as a clone of Bug #1178401 +++

## Observation

https://build.opensuse.org/build/openSUSE:Factory/images/local/000product:openSUSE-ftp-ftp-i586_x86_64/_log shows repeated warnings about:

```
[   14s] Warning: running kernel does not support fscaps
[   14s] Warning: running kernel does not support fscaps
[   14s] Warning: running kernel does not support fscaps
[   14s] Warning: running kernel does not support fscaps
[   14s] Warning: running kernel does not support fscaps
[   14s] Warning: running kernel does not support fscaps
[   14s] Warning: running kernel does not support fscaps
[   14s] Warning: running kernel does not support fscaps
```

## Steps to reproduce
Seemingly reproducible in any build of packages, e.g. https://build.opensuse.org/public/build/openSUSE:Factory/standard/x86_64/000product:openSUSE-ftp-ftp-i586_x86_64/_log
shows the same

## Expected result

Only errors and warnings in the log that I as package/project maintainer can fix
Comment 1 Takashi Iwai 2020-12-10 15:26:43 UTC
The message comes from permissions package.  It checks the presence of /sys/kernel/fscaps and its content being "1".

But the kernel must have this feature set (you cannot disable it), so it's either the mount of /sys isn't done at the moment or something else is wrong.
Comment 2 Miroslav Beneš 2022-01-21 12:44:58 UTC
Oliver, is there anything new here? Some time has passed, so I wonder if it is still an issue.
Comment 3 Oliver Kurz 2022-01-27 13:21:44 UTC
(In reply to Miroslav Beneš from comment #2)
> Oliver, is there anything new here? Some time has passed, so I wonder if it
> is still an issue.

Well, just following the steps to reproduce as in the original description still shows the same message so it's still the same issue
Comment 4 Miroslav Beneš 2022-01-28 10:29:39 UTC
Hm, I suppose "running kernel" means kernel-obs-build here. Is it any different from the common kernel? Because my TW kernel definitely has "1" in /sys/kernel/fscaps. So it is suspicious as Takashi said above.

Is there a way to spin up the OBS environment locally and take a look around?
Comment 5 Jiri Slaby 2022-01-28 11:18:19 UTC
(In reply to Miroslav Beneš from comment #4)
> Hm, I suppose "running kernel" means kernel-obs-build here. Is it any
> different from the common kernel? Because my TW kernel definitely has "1" in
> /sys/kernel/fscaps. So it is suspicious as Takashi said above.

As we tried, fscaps is 1 also in the obs-build kernel (it cannot be different as it is repackaged kernel-default package).

Looking at the output:
[   16s] util-linux-2.37.2-2.3                 ########################################
[   16s] Warning: running kernel does not support fscaps
[   16s] /usr/bin/mount: setting to root:root 4755 (wrong permissions 0755)

Clearly it warns even before mount(1) is installed. So /sys/ is definitely not instantiated at that phase.