Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

Avi Kivity
2011-05-26T08:50:47Z

On 05/26/2011 11:24 AM, Ingo Molnar wrote:
> So a simple object manager would simply use file label event
> attributes and would define simple rules like:
>
> "(label& tmp_t) || (label& user_home_t)"

Filtering by label vs. filtering by descriptor would solve qemu's
hotplug issue neatly.

> Note that tools/kvm/ would probably like to implement its own object
> manager model as well in addition to access method restrictions: by
> being virtual hardware it deals with many resources and object
> hierarchies that are simply not known to the host OS's LSM.
>
> Unlike Qemu tools/kvm/ has a design that is very fit for MAC
> concepts: it uses separate helper threads for separate resources
> (this could in many cases even be changed to be separate processes
> which only share access to the guest RAM image) - while Qemu is in
> most parts a state machine, so in tools/kvm/ we can realistically
> have a good object manager and keep an exploit in a networking
> interface driver from being able to access disk driver state.

You mean each thread will have a different security context? I don't
see the point. All threads share all of memory so it would be trivial
for one thread to exploit another and gain all of its privileges.

A multi process model works better but it has significant memory and
performance overhead.

(well the memory overhead is much smaller when using transparent huge
pages, but these only work for anonymous memory).

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.