All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] exec_via_sudo
@ 2001-04-10 10:55 kees
  2001-04-10 11:16 ` Tim Waugh
  2001-04-10 11:36 ` Alexander Viro
  0 siblings, 2 replies; 4+ messages in thread
From: kees @ 2001-04-10 10:55 UTC (permalink / raw)
  To: linux-kernel

Hi

Unix/Linux have a lot of daemons that have to run as root because they
need to acces some specific data or run special programs. They are
vulnerable as we learn.
Is there any way to have something like an exec call that is
subject to a sudo like permission system? That would run the daemons
as a normal user but allow only for specific functions i.e. NOT A SHELL.
comments?

Kees


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

* Re: [RFC] exec_via_sudo
  2001-04-10 10:55 [RFC] exec_via_sudo kees
@ 2001-04-10 11:16 ` Tim Waugh
  2001-04-10 11:36 ` Alexander Viro
  1 sibling, 0 replies; 4+ messages in thread
From: Tim Waugh @ 2001-04-10 11:16 UTC (permalink / raw)
  To: kees; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

On Tue, Apr 10, 2001 at 12:55:29PM +0200, kees wrote:

> Unix/Linux have a lot of daemons that have to run as root because they
> need to acces some specific data or run special programs. They are
> vulnerable as we learn.
> Is there any way to have something like an exec call that is
> subject to a sudo like permission system? That would run the daemons
> as a normal user but allow only for specific functions i.e. NOT A SHELL.

Yeah, exec sudo.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: [RFC] exec_via_sudo
  2001-04-10 10:55 [RFC] exec_via_sudo kees
  2001-04-10 11:16 ` Tim Waugh
@ 2001-04-10 11:36 ` Alexander Viro
  1 sibling, 0 replies; 4+ messages in thread
From: Alexander Viro @ 2001-04-10 11:36 UTC (permalink / raw)
  To: kees; +Cc: linux-kernel



On Tue, 10 Apr 2001, kees wrote:

> Hi
> 
> Unix/Linux have a lot of daemons that have to run as root because they
> need to acces some specific data or run special programs. They are
> vulnerable as we learn.
> Is there any way to have something like an exec call that is
> subject to a sudo like permission system? That would run the daemons
> as a normal user but allow only for specific functions i.e. NOT A SHELL.
> comments?

Thou shalt not put policy into the kernel.


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

* Re: [RFC] exec_via_sudo
@ 2001-04-10 17:04 Jesse Pollard
  0 siblings, 0 replies; 4+ messages in thread
From: Jesse Pollard @ 2001-04-10 17:04 UTC (permalink / raw)
  To: kees, linux-kernel

kees <kees@schoen.nl>:
> 
> Hi
> 
> Unix/Linux have a lot of daemons that have to run as root because they
> need to acces some specific data or run special programs. They are
> vulnerable as we learn.
> Is there any way to have something like an exec call that is
> subject to a sudo like permission system? That would run the daemons
> as a normal user but allow only for specific functions i.e. NOT A SHELL.
> comments?

Simple answer: no.

1. The exec system call (or library) has no way to communicate with the
   user for getting a password.
2. A user is not always present when the exec is done (cron/at/batch...).
   there is no terminal like device available.
3. In the cases where terminals are available, which terminal? The program
   doing the exec may have been detatched (background/nohup...).
4. In the cases where the user is connected via a window - there is no
   known way to provide that communication. (the DISPLAY environment might
   not be present...)

More complex answer: in some cases.

If the application doing the exec is programmed to, then it may open
an input type and actually use "sudo" to start another program. It will
be up to the implementation of "sudo" to accept the communication path
and perform suitable validation.

The primary weakness in this is that the communication path may not be
trusted by sudo... terminals type devices are easier to validate than
others (windowing systems for instance).

The problem with cron/at/batch cannot be solved since the user context
for any authentication path is missing. It would be necessary to authenticate
the communication path, before authenticating to sudo...

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

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

end of thread, other threads:[~2001-04-10 17:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-10 10:55 [RFC] exec_via_sudo kees
2001-04-10 11:16 ` Tim Waugh
2001-04-10 11:36 ` Alexander Viro
  -- strict thread matches above, loose matches on Subject: below --
2001-04-10 17:04 Jesse Pollard

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.