Bug 46802 - mail/popa3d: use of /var/empty of contemporary FreeBSD
Summary: mail/popa3d: use of /var/empty of contemporary FreeBSD
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-06 15:30 UTC by Dmitry Morozovsky
Modified: 2003-01-08 06:47 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (2.03 KB, patch)
2003-01-06 15:30 UTC, Dmitry Morozovsky
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Morozovsky 2003-01-06 15:30:01 UTC
mail/popa3d needs an empty directory for secure processing. As from approx 
4.6-stable, FreeBSD provides secured /var/empty, which can be used for these
purposes.

How-To-Repeat: 
cd /usr/ports/mail/popa3d
make install

Notice of /usr/local/empty
Comment 1 Dirk Meyer freebsd_committer freebsd_triage 2003-01-06 15:46:03 UTC
Responsible Changed
From-To: freebsd-ports->dinoex

over to maintainer
Comment 2 Kirill Ponomarew 2003-01-06 19:17:40 UTC
Hi!

Is it really good solution to use /var for port software? Why we can't 
use /usr/local/var for that ?

-- 
Kirill
Never tell them what you wouldn't do.
Comment 3 Dmitry Morozovsky 2003-01-06 22:45:05 UTC
On Mon, 6 Jan 2003, Kirill Ponomarew wrote:

KP> Is it really good solution to use /var for port software? Why we can't
KP> use /usr/local/var for that ?

Hmm, I just suposed that since we already have guarranteed empty and protected
by schg flag directory in the base system every port which is needed for such
directory would (if not should) choose it for its needs...

Surely, I can be wrong... So here is the PR ;-)

Sincerely,
D.Marck                                   [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
Comment 4 Kirill Ponomarew 2003-01-06 23:40:41 UTC
Hi Dmitry!

On Tue, Jan 07, 2003 at 01:45:05AM +0300, Dmitry Morozovsky wrote:
> Hmm, I just suposed that since we already have guarranteed empty and protected
> by schg flag directory in the base system every port which is needed for such
> directory would (if not should) choose it for its needs...

Does popa3d leave this directory also empty like sshd for
UsePrivilegeSeparation ?

-- 
Kirill
Everbody wants a pain shot at the same time.
Comment 5 Dmitry Morozovsky 2003-01-06 23:43:43 UTC
On Tue, 7 Jan 2003, Kirill Ponomarew wrote:

KP> > Hmm, I just suposed that since we already have guarranteed empty and protected
KP> > by schg flag directory in the base system every port which is needed for such
KP> > directory would (if not should) choose it for its needs...
KP>
KP> Does popa3d leave this directory also empty like sshd for
KP> UsePrivilegeSeparation ?

As far as I'd have experience with popa3d, yes. However, S0lar is the
authoritative source ;-) So, I'd CC: this maik to him.

Sincerely,
D.Marck                                   [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
Comment 6 solar 2003-01-07 00:06:04 UTC
On Tue, Jan 07, 2003 at 02:43:43AM +0300, Dmitry Morozovsky wrote:
> On Tue, 7 Jan 2003, Kirill Ponomarew wrote:
> 
> KP> > Hmm, I just suposed that since we already have guarranteed empty and protected
> KP> > by schg flag directory in the base system every port which is needed for such
> KP> > directory would (if not should) choose it for its needs...
> KP>
> KP> Does popa3d leave this directory also empty like sshd for
> KP> UsePrivilegeSeparation ?
> 
> As far as I'd have experience with popa3d, yes. However, S0lar is the
> authoritative source ;-) So, I'd CC: this maik to him.

Of course popa3d can safely co-exist with OpenSSH using a common
/var/empty directory.  In fact, /var/empty was first added into
OpenBSD for popa3d, not for sshd (privsep wasn't there at the time).

P.S. If my old e-mail address (solar@false.com) is still listed in
some place (the FreeBSD package?), it should be replaced with one I
have more control of, solar@openwall.com.

-- 
/sd
Comment 7 Dirk Meyer freebsd_committer freebsd_triage 2003-01-08 06:44:10 UTC
State Changed
From-To: open->closed

I commited a diffrent patch, 
to keep the port working for older Releases. Thanks.