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

Nicolas Boullis nicolas.boullis at ecp.fr
Mon Nov 20 22:30:25 CET 2006


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.
The /tmp/toto file is as follows:

$ls -la /tmp/toto
-rw-r--r-- 1 root root 0 Nov 20 22:25 /tmp/toto

After sending a message to the boullisn user, it contains:
uid=210135(boullisn) gid=210000 euid=0(root) egid=8(mail) groups=210000
LINEBUF=2048
HOST=imap
SHELL=/bin/sh
MSGPREFIX=msg.
SHELLMETAS=&|<>~;?*[
LOCKEXT=.lock
DEFAULT=/var/mail/boullisn
LOGABSTRACT=all
PATH=/usr/local/bin:/usr/bin:/bin
ORGMAIL=/var/mail/boullisn
PWD=/var/spool/postfix
MAILDIR=.
SHLVL=1
HOME=/home/sg/boullisn
LOGNAME=boullisn
PROCMAIL_VERSION=3.22
SENDMAILFLAGS=-oi
SHELLFLAGS=-c
SENDMAIL=/usr/sbin/sendmail
_=/usr/bin/env


Hope this helps,

Nicolas

PS: I may try postfix 2.3.4-1 as well, just in case it makes a difference.
-------------- next part --------------
MAILDIR=/var/mail/${LOGNAME}/
LOGABSTRACT=all

:0fw
| ((id; env) >> /tmp/toto; cat)

:0
${MAILDIR}


More information about the Pkg-uml-pkgs mailing list