Carlos E. R. wrote:
On 2023-02-01 19:45, Per Jessen wrote:
Carlos E. R. wrote:
But I want to know why locate doesn't locate them. It should.
Well, if it were me, I would try running updatedb with an strace, to see if it even touches on the directories. The updatedb seems to have permissions, so there has to be some other reason why it is avoiding /lib/modules - if it is indeed avoiding it.
When updatedb is run as root, without parameters, it finds those files.
Right.
And now, back at home, locate finds those files, in auxiliary (old) paths, something that it wasn't doing the other time I tried:
Okay, but that seems to be a tangent, as we are not interested in those paths.
I had a hunch, and apparmour is complaining:
Complaining about what? :-) You left out the most useful bit of information ...
--- /etc/apparmor.d/usr.bin.locate 2023-01-19 11:00:57.000000000
If there is an apparmor issue, I think you are looking at the wrong thing. You probably ought to look at 'updatedb'. I don't have a 15.4 system, I only have a TW test system with 'locale', but I don't see apparmor complaining about anything related to updatedbd or locate. I updated my own TW test system last night, and it failed to mount root, I'll have to go and fix that. -- Per Jessen, Zürich (6.6°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes