Re: [PATCH 2/2] x86: Allow disabling of sys_iopl, sys_ioperm

Alan Cox
2011-07-14T23:04:38Z

> > a) you can do this with a security module
>
> I can? How? The whole LSM approach seems intractable to me.

It would certainly need some trivial tweaking (to be specific we'd need
to move from capable(x) to capable_syscall(x, syscall_code) for those
interfaces that mattered, but that would probably be a good thing anyway
from the point of view of beating the capability model into something more
flexible and would help stuff like SELinux as well I think.

We have an underlying separation of security from the other details - we
really should keep it clean that way.

Alan