Bug 203665 - news/diablo: plist, permission problems
Summary: news/diablo: plist, permission problems
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-09 20:42 UTC by Dmitry Marakasov
Modified: 2015-10-12 17:35 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (lifanov)


Attachments
Patch (2.00 KB, patch)
2015-10-09 20:42 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer freebsd_triage 2015-10-09 20:42:13 UTC
Created attachment 161864 [details]
Patch

- Add missing directories to plist, fixing stage-qa
- Silence patching
- Switch to options helpers.

There are problems this patch doesn'r fix though: for some reason binaries and samples are writable by news. This is incorrect and is a security issue.

Not sure if files directly under news/ should be writable - that should be checked.
Comment 1 Nikolai Lifanov 2015-10-10 13:19:46 UTC
Thank you for improvements! I approve the patch.

You are right about it being odd that the entire news/ is writable.
Unfortunately, this is a common pattern for nntp software since the beginning.
If you install news/inn, for example, it also has binaries under news/ and expects
other subdirectories to be writable by news. I am looking at a CentOS package for Diablo that does the same thing.

I would be hesitant to change permissions under the news directory because it can break custom workflows for users of the port in subtle ways.
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-10-12 17:35:29 UTC
A commit references this bug:

Author: amdmi3
Date: Mon Oct 12 17:34:44 UTC 2015
New revision: 399143
URL: https://svnweb.freebsd.org/changeset/ports/399143

Log:
  - Add missing directories to plist, fixing stage-qa
  - Silence patching
  - Switch to options helpers

  PR:		203665
  Submitted by:	amdmi3
  Approved by:	lifanov@mail.lifanov.com (maintainer)

Changes:
  head/news/diablo/Makefile
  head/news/diablo/pkg-plist