Package: inspircd
Version: 2.0.27-1
Severity: normal
Quack,
If you use the xline_db module and try to list or add lines you end-up
with the following error:
Wed Apr 1 11:01:50 2020: ANNOUNCEMENT: database: cannot create new db:
Permission denied (13)
Indeed inspircd is not allowed to create a new database (which is then
renamed to the previous file, see src/modules/m_xline_db.cpp):
type=AVC msg=audit(1585731820.176:604602): apparmor="DENIED"
operation="mknod" profile="/usr/sbin/inspircd"
name="/etc/inspircd/
xline.db.new" pid=28308 comm="inspircd"
requested_mask="c" denied_mask="c" fsuid=39 ouid=39
I guess it would be even better to create such files in
/var/lib/inspircd but the package does not provide it. I nevertheless
did the change myself and added this line to the apparmor policy:
/var/lib/inspircd/* rw,
Similar problem when trying to use the geoip module:
Apr 01 11:28:40 Jinta inspircd[7048]: Error Opening file
/usr/share/GeoIP/GeoIP.dat
Apr 01 11:28:40 Jinta inspircd[7048]: [*] Unable to initialize
m_geoip.so: Unable to initialize geoip, are you missing GeoIP.dat?
and:
type=AVC msg=audit(1585733319.998:605041): apparmor="DENIED"
operation="open" profile="/usr/sbin/inspircd"
name="/usr/share/GeoIP/GeoIP.dat" pid=7048 comm="inspircd"
requested_mask="r" denied_mask="r" fsuid=39 ouid=0
I added this line to the apparmor policy:
/usr/share/GeoIP/GeoIP.dat r,
Btw the package could also Suggest geoip-database needed for this
module.
Regards.
\_o<
--
Marc Dequènes