SIGSEGV when running innd as non-root user
Dominik 'Rathann' Mierzejewski
dominik at greysector.net
Thu Jan 26 22:19:55 UTC 2017
I'm one of the maintainers of the INN package in Fedora. A bug report
came some time ago about a segfault when running innd as non-root user:
It's easy to reproduce, too. Just run the command as non-root user:
INNCONF=/tmp/inn.conf /usr/libexec/news/innd -d
According to the report above:
[...] it segfaults in newsuser.c:98.
It crashes because innconf variable is NULL and this is because innd
calls ensure_news_grp() via ensure_news_user_grp() before reading a
configuration with innconf_read() in main().
The issue is that the target user and group is defined in the
configuration file. The get_news_uid_gid() default to hard-coded "news"
group if configuration is not yet loaded.
Would it be possible to modify innd so that it first reads
configuration, and then it tries to change UID and GID?
PS. I tried opening a trac ticket first, but I don't see any option
to create an account there (https://inn.eyrie.org/trac/report/1).
-- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"
More information about the inn-workers