Files
plocate/sysconfig.locate
Dirk Stoecker eeb80baf09 Accepting request 1108124 from home:manfred999
plocate is vastly superior (speed and database size) to mlocate while still being compatible. Mlocate is not developed since years, most major distributions switched to plocate a long time ago.

This SR adjusts plocate to be compatible to the SUSE version
of mlocate: no setgid, run as nobody, visibility check disabled.
The intention is to have a drop-in replacement for mlocate.

I tested both the RUN_UPDATEDB_AS=nobody and
RUN_UPDATEDB_AS=root variants, works for me (TM). After some
simmering in server:search a submit to Factory is intended.

Second submission, changes see changelog.

OBS-URL: https://build.opensuse.org/request/show/1108124
OBS-URL: https://build.opensuse.org/package/show/server:search/plocate?expand=0&rev=1
2023-09-21 07:04:56 +00:00

19 lines
707 B
Plaintext

## Path: Applications/Locate
## Description: Configuration of updatedb
#
# NOTE: These variables only apply to systemd updatedb service only
# NOTE: For the app-wide settings see /etc/updatedb.conf
#
## Type: string(nobody, root, ...)
## Default: nobody
#
# updatedb can be run under specified user privileges
# It runs the "find" command as this user. Some people think this is a
# security hole if set to 'root' (because some directory information can
# be read which is normally protected). Others think it is useful to hold
# all files in the database.
# So if you want full information in locate db, set RUN_UPDATEDB_AS=root.
# If you want security use RUN_UPDATEDB_AS=nobody.
#
RUN_UPDATEDB_AS=nobody