Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jan 2003 18:20:37 +0300 (MSK)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dinoex@FreeBSD.org
Subject:   ports/46802: mail/popa3d: use of /var/empty of contemporary FreeBSD
Message-ID:  <200301061520.h06FKb64051062@woozle.rinet.ru>

next in thread | raw e-mail | index | archive | help

>Number:         46802
>Category:       ports
>Synopsis:       mail/popa3d: use of /var/empty of contemporary FreeBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 06 07:30:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Morozovsky
>Release:        FreeBSD 4-STABLE i386
>Organization:
Cronyx Plus LLC (RiNet ISP)
>Environment:
System: FreeBSD 4-STABLE 


>Description:
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

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/popa3d/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile    29 Oct 2002 20:33:47 -0000      1.14
+++ Makefile    6 Jan 2003 15:17:07 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=      popa3d
 PORTVERSION=   0.5.1
+PORTREVISION=  1
 CATEGORIES=    mail
 MASTER_SITES=  http://www.openwall.com/popa3d/ \
                ftp://ftp.openwall.com/pub/projects/popa3d/ \
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/mail/popa3d/pkg-plist,v
retrieving revision 1.6
diff -u -r1.6 pkg-plist
--- pkg-plist   17 Jan 2002 21:51:55 -0000      1.6
+++ pkg-plist   6 Jan 2003 15:17:07 -0000
@@ -1,6 +1,4 @@
 @comment $FreeBSD: ports/mail/popa3d/pkg-plist,v 1.6 2002/01/17 21:51:55 dinoex Exp $
-@exec mkdir -p %D/empty
-@dirrm empty
 libexec/popa3d
 %%PORTDOCS%%share/doc/popa3d/DESIGN
 %%PORTDOCS%%share/doc/popa3d/LICENSE
Index: files/patch-aa
===================================================================
RCS file: /home/ncvs/ports/mail/popa3d/files/patch-aa,v
retrieving revision 1.3
diff -u -r1.3 patch-aa
--- files/patch-aa	12 Jan 2002 13:04:41 -0000	1.3
+++ files/patch-aa	6 Jan 2003 15:13:24 -0000
@@ -1,6 +1,9 @@
---- params.h.orig	Tue Oct 16 06:10:34 2001
-+++ params.h	Sat Dec 22 11:57:52 2001
-@@ -99,7 +99,7 @@
+
+$FreeBSD$
+
+--- params.h.orig	Mon Jan  6 18:09:49 2003
++++ params.h	Mon Jan  6 18:11:03 2003
+@@ -99,13 +99,13 @@
   * A pseudo-user to run as before authentication. The user and its UID
   * must not be used for any other purpose.
   */
@@ -9,6 +12,13 @@
  
  /*
   * An empty directory to chroot to before authentication. The directory
+  * and its parent directories must not be writable by anyone but root.
+  */
+-#define POP_CHROOT			"/usr/local/empty"
++#define POP_CHROOT			"/var/empty"
+ 
+ /*
+  * Sessions will be closed if idle for longer than POP_TIMEOUT seconds.
 @@ -142,8 +142,8 @@
   *
   * Note that there's no built-in password aging support.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301061520.h06FKb64051062>