Page 1 of 1

Executing a user-compiled object

PostPosted: Mon Oct 02, 2006 10:42 am
by Loggy
I posted this on the mailing list a few days back but I guess it's got lost somewhere so here goes...

I want to enable some trusted users to be able to run their own compiled objects, the names of which will not generally be known.

Obviously this can lead to some trouble and ideally I don't want to do this by including the user in the TPE group as that would enable them to run rather more.

Is there an alternative? I haven't upgraded grsec for some time so perhaps this sort of thing is already included.

Installed and ready-compiled objects may not behave themselves as well but they can be dealt with by an appropriate ACL if they are trusted on an individual basis.

I noticed a thread http://forums.grsecurity.net/viewtopic.php?p=5650& and that shows what could be done if a user can compile. Obviously I would want to avoid such disasters. The thread also gives some ideas about restricting use but as PaX quotes Andrew Morton at the end, there are many ways to cripple a linux box.

But not being able to compile your own programs for a serious user is pretty restrictive too.

Maybe we have to wait for Xen to be fully integrated into the 2.6 kernel and give everyone a sandbox.:lol:

Re: Executing a user-compiled object

PostPosted: Mon Oct 02, 2006 7:19 pm
by PaX Team
Loggy wrote:Maybe we have to wait for Xen to be fully integrated into the 2.6 kernel and give everyone a sandbox.:lol:
local security (privilege elevation in particular) is an unsolved problem in general. if your users can compile their own code, nothing will stop them from running kernel exploits. even if they can't directly execute machine code, they can probably still execute scripts and some of these languages are powerful enough to implement kernel exploits as well. separation into virtual machines may or may not solve the problem, it depends on how safe the separation is, and then you'll have the resource use and maintenance problem.

PostPosted: Mon Oct 02, 2006 10:38 pm
by spender
Hi John,

I didn't see any message sent to the list and you're not moderated there. Could you try sending it again?

-Brad

PostPosted: Tue Oct 03, 2006 5:52 pm
by spender
My fault. It would probably help if the mailing list processes were running. I must have forgotten to restart it when I upgraded.

-Brad