Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 603270

Summary: media-video/flumotion: mask for removal (init script should use checkpath instead of mkdir/chown/chmod)
Product: Gentoo Linux Reporter: Michael Orlitzky <mjo>
Component: Current packagesAssignee: GStreamer package maintainers <gstreamer>
Status: RESOLVED FIXED    
Severity: normal CC: treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Masked for removal on 2017-02-18
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 550648, 605100    

Description Michael Orlitzky gentoo-dev 2016-12-20 23:24:24 UTC
The init script for flumotion uses a series of mkdir, chown, and chmod to create its runtime directory:

  start() {
      ebegin "Starting Flumotion"
      if [ ! -d /var/run/flumotion ] ; then
          mkdir /var/run/flumotion
          chown flumotion:flumotion /var/run/flumotion
          chmod 755 /var/run/flumotion
      fi

A call to "checkpath" from OpenRC (man openrc-run) would be more appropriate here. It's more portable, being part of OpenRC, and generally more secure because chown and chmod will act on symlinks (but checkpath won't).
Comment 1 Mart Raudsepp gentoo-dev 2016-12-20 23:55:42 UTC
This is instead a last rite candidate.
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-02-18 04:12:35 UTC
Package removed.