* fsuid0 caps
@ 2002-09-04 21:11 M.L.PrasannaK.R.
0 siblings, 0 replies; only message in thread
From: M.L.PrasannaK.R. @ 2002-09-04 21:11 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 769 bytes --]
In reply to
ttp://www.uwsg.iu.edu/hypermail/linux/kernel/0204.3/0380.html
This is documentation error. There is also a break in default
semantics of uid0 that needs to be fixed.
It is not a security hole as it results in the reduced capabilities
rather than in the increased capabilities.
setresuid(x,x,-1) clears effective caps.
setfsuid(0) rstores CAP_FS_MASK effective caps.
setresuid(-1,-1,x) clears both effective and permitted caps.
Both fs and non fs caps are lost.
This results in uid0 with no capabilties and no way of
restoring them. If this is valid issue, something like
the following patch fixes it.
Thanks,
MLPKR.
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
[-- Attachment #2: fsuid_caps.patch --]
[-- Type: application/x-unknown, Size: 1703 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-04 21:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-04 21:11 fsuid0 caps M.L.PrasannaK.R.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®