All of lore.kernel.org
 help / color / mirror / Atom feed
* Radical idea? Remove all automatic privilege escalation base on executable file attributes!
@ 2008-08-08 10:31 Markku Savela
  2008-08-08 11:00 ` Johannes Weiner
  0 siblings, 1 reply; 2+ messages in thread
From: Markku Savela @ 2008-08-08 10:31 UTC (permalink / raw)
  To: linux-kernel


That is, remove

 - setuid/setgid feature from Linux

 - cancel the capability attributes in files (or only only allow
   downgrading of capabilities)

(e.g. mount everything as nosuid or something, but eventually, the
code could be removed from the kernel)

The only way to escalate privileges would be to request starting of
the executable by some daemon (like upstart), which would grant or
deny the request based totally on some user space policies.

If granted,

 - would fork
 - child would setup the specified credentials to self
 - execve (or equivalent)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Radical idea? Remove all automatic privilege escalation base on executable file attributes!
  2008-08-08 10:31 Radical idea? Remove all automatic privilege escalation base on executable file attributes! Markku Savela
@ 2008-08-08 11:00 ` Johannes Weiner
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Weiner @ 2008-08-08 11:00 UTC (permalink / raw)
  To: Markku Savela; +Cc: linux-kernel

Hi,

Markku Savela <msa@moth.iki.fi> writes:

> That is, remove
>
>  - setuid/setgid feature from Linux
>
>  - cancel the capability attributes in files (or only only allow
>    downgrading of capabilities)
>
> (e.g. mount everything as nosuid or something, but eventually, the
> code could be removed from the kernel)
>
> The only way to escalate privileges would be to request starting of
> the executable by some daemon (like upstart), which would grant or
> deny the request based totally on some user space policies.

Let's just hope then that this central facility is not buggy itself.
Because if that would be the only way to acquire privileges as
non-priviledged user, it is likely that every machine runs it.

Opposed to a bug in one setuid program that not everyone is even
garuanteed to have installed.

	Hannes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-08 11:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08 10:31 Radical idea? Remove all automatic privilege escalation base on executable file attributes! Markku Savela
2008-08-08 11:00 ` Johannes Weiner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.