Re: capable open_port() check wrong for kmem

From: Chris Wright (
Date: Wed Dec 11 2002 - 21:11:44 EST

* carbonated beverage ( wrote:
> So if I want to have a generic utility that can be used by any user (and
> I'm not granting CAP_SYS_RAWIO to every process), then I can:
> 1) make it suid root
> 2) drop all caps other than cap_sys_rawio
> or
> 1) add the capability to the executable, assuming it worked...

this is not supported without kernel patches. in general you have to
start with full capabilities and shed the ones you don't need.


Linux Security Modules
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Dec 15 2002 - 22:00:24 EST