lkml.org 
[lkml]   [2005]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectCapability ingranularity
Hello developers,


I am currently writing a LSM security module. Because of how many functions
work, I have to add CAP_SYS_ADMIN to the effective capabilities of the
implemented "medium-privileged root" user. However, CAP_SYS_ADMIN is used in a
_lot_ of places, so I need to add security_*() hooks for many functions that
just return EPERM should current->euid be MediumPriv.
If you just look at include/linux/capabilities.h and look at the long list of
what CAP_SYS_ADMIN enables, this might sound like an overkill. Is there a
better way to do this?



Jan Engelhardt
--
| Alphagate Systems, http://alphagate.hopto.org/
-
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-07-27 21:03    [W:0.053 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site