Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Aug 2005 15:55:35 GMT
From:      "Brian A. Seklecki" <lavalamp@spiritual-machines.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/85291: security/samhain WITH_RUNAS_USER defaults to daemon when building yule (WITH_SERVER)
Message-ID:  <200508251555.j7PFtZJR022483@www.freebsd.org>
Resent-Message-ID: <200508251600.j7PG0g6g016371@freefall.freebsd.org>

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

>Number:         85291
>Category:       ports
>Synopsis:       security/samhain WITH_RUNAS_USER defaults to daemon when building yule (WITH_SERVER)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 25 16:00:42 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Brian A. Seklecki
>Release:        FreeBSD 5.3-RELEASE-p20 i386 GENERIC
>Organization:
Collaborative Fusion, Inc.
>Environment:
FreeBSD soundwave 5.3-RELEASE-p20 FreeBSD 5.3-RELEASE-p20 #0: Wed Jul 27 16:03:34 EDT 2005     root@soundwave.collaborativefusion.com:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
      The Makefile for ports/security/samhain states:

# WITH_RUNAS_USER:                                                                                                           
#       Whe building with "WITH_SERVER" defined, the username of the                                                         
#       account Yule will run as. Defaults to "yule".  

But WITH_RUNAS_USER isn't set to anything in the Makefile or anywhere else., so it defaults to 'daemon'.  This works fine until you enable --with-gpg and GPG fails permissions/ownership sanity checks on ~WITH_RUNAS_USER/.gnupg because 'daemon' and 'root' share a $HOME of /root.
>How-To-Repeat:
      Build samhain with WITH_GPG=true and WITH_SERVER=true
>Fix:
      1) WITH_RUNAS_USER could default to something
      2) If not, there should be an:

.if defined(WITH_GPG) && defined (WITH_SERVER) 

...that alerts the user or sets the WITH_RUNAS_USER to something other than daemon.
>Release-Note:
>Audit-Trail:
>Unformatted:



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