[Pkg-uml-pkgs] Bug#399579: user-mode-linux: Failure to drop privileges inside UML

Mattia Dongili malattia at linux.it
Tue Nov 21 09:07:03 CET 2006


On Mon, Nov 20, 2006 at 10:30:25PM +0100, Nicolas Boullis wrote:
> Hi,
> 
> Quoting Mattia Dongili <malattia at linux.it>:
> >
> >Can you provide evidence?[1] It seems I can't reproduce what you say.
> >Eg: I made ~/Mail/inbox a root-only folder and procmail complains about
> >it:
> >procmail: Unable to treat as directory "/home/malattia/Mail/inbox/new"
> >
> >Actually I tried with postfix 2.3.4-1 but it shouldn't matter if the
> >problem is UML.
> >
> >[1]: or sample instructions or simple proof-of-concept
> 
> I tried with the attached /etc/procmailrc, no ~/.procmailrc for my user.

This is a documented behaviour for procmail:

    If  no  rcfiles and no -p have been specified on the command line,
    procmail will, prior to reading $HOME/.procmailrc, interpret
    commands from /etc/procmailrc  (if  present).   Care must  be taken
    when creating /etc/procmailrc, because, if circumstances permit, it
    will be executed with root privileges (contrary to the
    $HOME/.procmailrc file of course).

Try with a per-user .procmailrc and you'll see procmail is run as user
:)

Closing as this is not a bug.
Thanks
-- 
mattia
:wq!




More information about the Pkg-uml-pkgs mailing list