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
20 lines
361 B
Plaintext
20 lines
361 B
Plaintext
# Last Modified: Sun Aug 27 12:06:59 2023
|
|
include <tunables/global>
|
|
|
|
/usr/{bin,sbin}/updatedb {
|
|
include <abstractions/base>
|
|
|
|
capability dac_override,
|
|
capability dac_read_search,
|
|
capability fowner,
|
|
|
|
/ r,
|
|
/**/ r,
|
|
/etc/updatedb.conf r,
|
|
/usr/{bin,sbin}/updatedb mr,
|
|
/var/lib/plocate r,
|
|
/var/lib/plocate/* rwlk,
|
|
owner /proc/@{pid}/mounts r,
|
|
|
|
}
|