Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#3748·manticoresearch

searchd runs config scripts without execution permission

Author: sanikolaevCreated Sep 11, 2025Updated Sep 19, 2026
Labelsbugest::size_S

Bug Description:

If a scripted config file does not have execution permission, searchd can still execute it, which seems incorrect:

cat rt.conf.sh

#!/bin/sh

echo "
searchd {
    listen = 19312
    listen = 9315:mysql41
    log = searchd.log
    pid_file = searchd.pid
    binlog_path =
}

table t {
    type = rt
    path = /tmp/test_table
    rt_field = f
    min_infix_len = 2
}
"

 ~  ls -la rt.conf.sh
-rw-------  1 sn  staff  237 11 Sep 17:50 rt.conf.sh
 ~  searchd -c rt.conf.sh
Manticore 13.6.7 1ab9ccc95@25080704 (columnar 8.0.1 fc30df6@25072219) (secondary 8.0.1 fc30df6@25072219) (knn 8.0.1 fc30df6@25072219) (embeddings 1.0.0)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-2025, Manticore Software LTD (https://manticoresearch.com)

[50:53.451] [39011948] using config file '/Users/sn/rt.conf.sh' (219 chars)...
starting daemon version '13.6.7 1ab9ccc95@25080704 (columnar 8.0.1 fc30df6@25072219) (secondary 8.0.1 fc30df6@25072219) (knn 8.0.1 fc30df6@25072219) (embeddings 1.0.0)' ...
listening on all interfaces for sphinx and http(s), port=19312
listening on all interfaces for mysql, port=9315
precaching table 't'
precached 1 tables in 0.001 sec

Expected behavior:
searchd should fail if the provided config file is a script without execution permission

Manticore Search Version:

Manticore 13.6.7 1ab9ccc95@25080704 (columnar 8.0.1 fc30df6@25072219) (secondary 8.0.1 fc30df6@25072219) (knn 8.0.1 fc30df6@25072219) (embeddings 1.0.0)

Operating System Version:

macos

Have you tried the latest development version?

No

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

  • Implementation completed
  • Tests developed
  • Documentation updated
  • Documentation reviewed

Source: manticoresoftware/manticoresearch

View original on GitHubView discussion on GitHub