Re: Problem mit capability's und Kernel 2.6
Jürgen Braun <[email protected]>
| Newsgroups | gmane.linux.dazuko.devel |
|---|---|
| Message-ID | <[email protected]> |
John Ogness schrieb: > Jürgen Braun wrote: > >> folgendes gekommen. Wieso nicht einfach dem dazuko die capabilities >> des default-moduls mitgeben? > > > Thanks! This looks like the best and easiest solution so far! The > Default Capabilities module has no actual implementation. It just hooks > the commoncap functions. I have added this code to Dazuko (about 10 > lines) and it works perfectly. > > Rather than using the "capability" module, you will only have to use the > "dazuko" module and it will bring with it the Default Capabilities. I > will be releasing a new pre-release (2.0.3-pre1) within the next couple > days that has this included. I will post information about it as well as > how to use Dazuko with Default Capabilities. > > Thank you Jürgen! > > John Ogness > Hi I've tried the cvs-version and found a bug *g*. It won't compile on all Linux 2.6 versions. So take a look at the patch. Jürgen diff -Nru dazuko/dazuko_linux26.c dazuko_patch/dazuko_linux26.c --- dazuko/dazuko_linux26.c 2004-06-05 17:41:33.000000000 +0200 +++ dazuko_patch/dazuko_linux26.c 2004-06-06 00:17:06.000000000 +0200 @@ -607,18 +607,22 @@ .netlink_send = cap_netlink_send, .netlink_recv = cap_netlink_recv, -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,5) +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,5) .bprm_compute_creds = cap_bprm_compute_creds, #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,6) - .bprm_apply_creds = cap_bprm_apply_creds, */ + .bprm_apply_creds = cap_bprm_apply_creds, #endif .bprm_set_security = cap_bprm_set_security, .bprm_secureexec = cap_bprm_secureexec, + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,2) .inode_setxattr = cap_inode_setxattr, .inode_removexattr = cap_inode_removexattr, +#endif + .task_post_setuid = cap_task_post_setuid, .task_reparent_to_init = cap_task_reparent_to_init, .syslog = cap_syslog,