Bug 157129 - [maintainer] misc/findutils fix usage of su(1) in gupdatedb
Summary: [maintainer] misc/findutils fix usage of su(1) in gupdatedb
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Frederic Culot
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 22:20 UTC by Klaus Aehlig
Modified: 2011-05-20 13:30 UTC (History)
0 users

See Also:


Attachments
patch-locate__updatedb.sh (1.25 KB, text/plain)
2011-05-17 22:20 UTC, Klaus Aehlig
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Aehlig 2011-05-17 22:20:08 UTC
	misc/findutils brings a script gupdatedb to update the database for glocate.
        To support restricting the database to only contain readable by a specific
        user (in order to avoid leaking sensitive information from the file structure)
        su(1) is used to call gfind(1). However, the assumption about how to call su(1)
        differs from su(1) as provided by FreeBSD. This has the effect that su(1) fails
        (resulting in an empty database) when a user with nologin as login shell
        is used, like the nobody user.

Fix: add the following patch to the files subdirectory of the port
        and bump PORTREVISION.
How-To-Repeat: 	/usr/local/bin/gupdatedb --localuser=nobody
Comment 1 Frederic Culot freebsd_committer 2011-05-20 13:07:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->culot

I'll take it.
Comment 2 dfilter service freebsd_committer 2011-05-20 13:21:03 UTC
culot       2011-05-20 12:20:54 UTC

  FreeBSD ports repository

  Modified files:
    misc/findutils       Makefile 
  Added files:
    misc/findutils/files patch-locate__updatedb.sh 
  Log:
  - Add a patch to fix usage of su(1) in the gupdatedb script provided
    with findutils
  - Bump PORTREVISION
  
  PR:             ports/157129
  Submitted by:   Klaus Aehlig <aehlig@linta.de> (maintainer)
  
  Revision  Changes    Path
  1.45      +1 -0      ports/misc/findutils/Makefile
  1.1       +38 -0     ports/misc/findutils/files/patch-locate__updatedb.sh (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Frederic Culot freebsd_committer 2011-05-20 13:21:08 UTC
State Changed
From-To: open->closed

Committed. Thanks!