[Users] Re: Capabilities

Kirill Korotaev dev at sw.ru
Wed Mar 14 06:03:04 EDT 2007


Benny Amorsen wrote:
>>>>>>"BA" == Benny Amorsen <benny+usenet at amorsen.dk> writes:
> 
> 
> BA> Would it be possible to enable CONFIG_SECURITY and make
> BA> CONFIG_SECURITY_CAPABILITIES a module in the standard OpenVZ
> BA> kernel? Does OpenVZ fundamentally not work with capabilities?
> 
> Ah, a quick test gave me this result:
> 
> kernel/sched.c: In function '__activate_task':
> kernel/sched.c:1565: warning: implicit declaration of function 've_stop_idle'
> kernel/sched.c:1565: error: 've' undeclared (first use in this function)
> kernel/sched.c:1565: error: (Each undeclared identifier is reported only once
> kernel/sched.c:1565: error: for each function it appears in.)
> kernel/sched.c: In function 'deactivate_task':
> kernel/sched.c:1718: error: 'pcpu' undeclared (first use in this function)
> kernel/sched.c:1735: warning: implicit declaration of function 've_strt_idle'
> kernel/sched.c:1735: error: 've' undeclared (first use in this function)
> kernel/sched.c:1735: error: 'cpu' undeclared (first use in this function)
> kernel/sched.c: In function 'pull_task':
> kernel/sched.c:3037: error: 've' undeclared (first use in this function)
> kernel/sched.c: In function 'vsched_add_vcpu':
> kernel/sched.c:8218: warning: implicit declaration of function 'VE_CPU_STATS'
> kernel/sched.c:8218: error: 'struct fairsched_node' has no member named 'owner_env'
> kernel/sched.c:8219: error: invalid application of 'sizeof' to incomplete type 'struct ve_cpu_stats' 
> kernel/sched.c:8219: warning: passing argument 1 of 'memset' makes pointer from integer without a cast
> kernel/sched.c:8221: error: 'struct fairsched_node' has no member named 'owner_env'
> make[1]: *** [kernel/sched.o] Error 1
> make: *** [kernel] Error 2
> 
> So I guess it isn't trivial to enable.
No, it looks like you used non-OVZ config and disabled OVZ options
like CONFIG_FAIRSCHED and CONFIG_SCHED_VCPU. So compilation failed.
So this one is not related to zebra/capabilities.


Thanks,
Kirill


More information about the Users mailing list