Bug 219054

Summary: net/ocserv: should change the owner and group of the /var/run/ocserv dir when install
Product: Ports & Packages Reporter: Jov <amutu>
Component: Individual Port(s)Assignee: Carlos J. Puga Medina <cpm>
Status: Closed FIXED    
Severity: Affects Some People Keywords: patch
Priority: --- Flags: cpm: maintainer-feedback+
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
patch
cpm: maintainer-approval+
patch
cpm: maintainer-approval+
patch
cpm: maintainer-approval+
patch cpm: maintainer-approval+

Description Jov 2017-05-04 03:09:39 UTC
Now the default install of the ocserv create the /var/run/ocserv with root:wheel,but ocserv worker process run as _ocserv:_ocserv permission,so after installed,ocserv failed to start when running "service ocserv onestart".

manually change the owner of the dir to _ocserv:_ocserv fix the problem.
Comment 1 Carlos J. Puga Medina freebsd_committer freebsd_triage 2017-05-04 12:55:21 UTC
Created attachment 182298 [details]
patch

- Fix permissions for /var/run/ocserv
Comment 2 Carlos J. Puga Medina freebsd_committer freebsd_triage 2017-05-04 19:09:44 UTC
Created attachment 182304 [details]
patch
Comment 3 Carlos J. Puga Medina freebsd_committer freebsd_triage 2017-05-04 19:11:23 UTC
The attached patch should fix the problem.

Thanks for reporting!
Comment 4 Carlos J. Puga Medina freebsd_committer freebsd_triage 2017-05-04 21:32:06 UTC
Created attachment 182308 [details]
patch
Comment 5 Carlos J. Puga Medina freebsd_committer freebsd_triage 2017-05-04 22:13:32 UTC
Created attachment 182310 [details]
patch
Comment 6 commit-hook freebsd_committer freebsd_triage 2017-05-05 10:08:59 UTC
A commit references this bug:

Author: cpm
Date: Fri May  5 10:08:34 UTC 2017
New revision: 440146
URL: https://svnweb.freebsd.org/changeset/ports/440146

Log:
  - Fix ownership and permissions in /var/run/ocserv
  - Bump PORTREVISION

  PR:		219054
  Reported by:	Joy <amutu@amutu.com>

Changes:
  head/net/ocserv/Makefile
  head/net/ocserv/pkg-plist