Skip to contentSkip to conversation

where is the capset kernel module?

DISCUSSION Jeff Chua 3 participants 7 messages Feb 6, 2008 – Feb 8, 2008

lore
Share & tools
lore

Jeff Chua

author
#0 lore raw

Latest linux git complained about this ...

named: capset failed: Operation not permitted: please ensure that the capset kernel module is loaded. see insmod(8)

Where is the capset kernel module?

Thanks,
Jeff.

author
#1 lore raw
Quoted 4 lines · Jeff Chua

Latest linux git complained about this ...

named: capset failed: Operation not permitted: please ensure that the capset kernel module is loaded. see insmod(8)

How this started was that with the latest git linux, I got this warning ...

warning: `named' uses 32-bit capabilities (legacy support in use)

So, I recompile named and ended up with the "capset failed" problem. I tried compiling linux with LSM, but that didn't help.

Adding "--disable-linux-caps" to named compile solved the problem.

Thanks,
Jeff.

#2 lore raw
Quoted 9 lines · Jeff Chua
Quoted 4 lines · Jeff Chua

Latest linux git complained about this ...

named: capset failed: Operation not permitted: please ensure that the capset kernel module is loaded. see insmod(8)

How this started was that with the latest git linux, I got this warning ...

warning: `named' uses 32-bit capabilities (legacy support in use)

Yes it is a really interesting case I have seen before, but did not bother to investigate.
Is

CONFIG_SECURITY=y
CONFIG_SECURITY_CAPABILITIES=m or y

working?

author
#3 lore raw
Quoted 5 lines · Jan Engelhardt
Quoted 1 line

warning: `named' uses 32-bit capabilities (legacy support in use)

Yes it is a really interesting case I have seen before, but did not bother to investigate. CONFIG_SECURITY=y CONFIG_SECURITY_CAPABILITIES=m or y

Tried, but didn't help.

Menuconfig can't select these as modules. So may be that's they need to be make modular.

[*] Enable different security models
[*] Socket and Networking Security Hooks (NEW)
[*] Default Linux Capabilities (NEW)
[*] File POSIX Capabilities (EXPERIMENTAL)
[ ] Root Plug Support (NEW)

Thanks,
Jeff.

#4 lore raw
Quoted 10 lines · Jeff Chua
Quoted 5 lines · Jan Engelhardt
Quoted 1 line

warning: `named' uses 32-bit capabilities (legacy support in use)

Yes it is a really interesting case I have seen before, but did not bother to investigate. CONFIG_SECURITY=y CONFIG_SECURITY_CAPABILITIES=m or y

Tried, but didn't help.

Quoted 8 lines

Menuconfig can't select these as modules. So may be that's they need to be make modular.

[*] Enable different security models
[*] Socket and Networking Security Hooks (NEW)
[*] Default Linux Capabilities (NEW)
[*] File POSIX Capabilities (EXPERIMENTAL)
[ ] Root Plug Support (NEW)

Odd, I thought the help text was originally far more helpful, including a url. The message isn't telling you you need a kernel module, but that you are using an old libcap. It isn't a real problem right now if you're not using the SMACK LSM, but to get rid of the message upgrade your libcap from
http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-2.05.tar.gz

thanks,
-serge

author
#5 lore raw
Quoted 6 lines · On Feb 7, 2008 11:23 AM, <[email protected]> wrote:

Odd, I thought the help text was originally far more helpful, including a url. The message isn't telling you you need a kernel module, but that you are using an old libcap. It isn't a real problem right now if you're not using the SMACK LSM, but to get rid of the message upgrade your libcap from
http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-2.05.tar.gz

That's very useful. I'll try it this weekend.

Thanks for your help!

Jeff.

#6 lore raw
In reply to Jeff Chua
Quoted 10 lines · Jeff Chua
Quoted 5 lines
Quoted 1 line

warning: `named' uses 32-bit capabilities (legacy support in use)

Yes it is a really interesting case I have seen before, but did not bother to investigate. CONFIG_SECURITY=y CONFIG_SECURITY_CAPABILITIES=m or y

Tried, but didn't help.

Menuconfig can't select these as modules. So may be that's they need to be make modular.

O the joy of the make-it-nonmodular patch in 2.6.24.

Quoted 5 lines

[*] Enable different security models
[*] Socket and Networking Security Hooks (NEW)
[*] Default Linux Capabilities (NEW)
[*] File POSIX Capabilities (EXPERIMENTAL)
[ ] Root Plug Support (NEW)