Bug 219054 - net/ocserv: should change the owner and group of the /var/run/ocserv dir when install
Summary: net/ocserv: should change the owner and group of the /var/run/ocserv dir when...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Carlos J. Puga Medina
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-05-04 03:09 UTC by Jov
Modified: 2017-05-05 10:10 UTC (History)
0 users

See Also:
cpm: maintainer-feedback+


Attachments
patch (1.20 KB, patch)
2017-05-04 12:55 UTC, Carlos J. Puga Medina
cpm: maintainer-approval+
Details | Diff
patch (1.16 KB, patch)
2017-05-04 19:09 UTC, Carlos J. Puga Medina
cpm: maintainer-approval+
Details | Diff
patch (1.15 KB, patch)
2017-05-04 21:32 UTC, Carlos J. Puga Medina
cpm: maintainer-approval+
Details | Diff
patch (1.15 KB, patch)
2017-05-04 22:13 UTC, Carlos J. Puga Medina
cpm: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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