> /* We don't have VFS support for capabilities yet */
> - cap_clear(bprm->cap_inheritable);
> - cap_clear(bprm->cap_permitted);
> - cap_clear(bprm->cap_effective);
> + /* if we did we'd do something like this pseudo */
> + /* if (HAD_VFS_CAPS_AVAIL) {
> + * USE_VFS_CAPS
> + * else {
> + * USE_DEFAULTS_AS_BELOW
> + * }
> + */
Yep, here is an example implementation of that:
ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.3/
Cheers
Andrew
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/