lkml.org 
[lkml]   [2004]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: capwrap: granting capabilities without fs support
From
Date
On Thu, 2004-04-08 at 10:07, Andy Lutomirski wrote:
> When I have time (hopefully real soon now), I'll post a patch to actually fix
> capabilities. With that patch, this can be a trivial wrapper script instead of
> a kernel module. Note that this could be _very_ dangerous if glibc does the
> wrong thing (I don't know whether it does, though).

The security_bprm_secureexec hook can be used to cause the AT_SECURE
flag to be set in the ELF auxiliary table, and glibc now uses that flag
to determine whether to enable secure mode. You would need to patch
cap_bprm_secureexec to do the right thing, but otherwise the support is
ready. SELinux uses this to enable glibc secure mode for role/domain
changes.

--
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.034 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site