chcon error on Ubuntu 18

2 posts Page 1 of 1
Black Tiger
Junior Member
Posts: 63
Joined: 17 Feb 2009, 14:14


I ran into some errors today when installing CSF on an Ubuntu 18.04 VPS system.
Code: Select all
*WARNING* TESTING mode is enabled - do not forget to disable it in the configuration
'lfd.service' -> '/usr/lib/systemd/system/lfd.service'
'csf.service' -> '/usr/lib/systemd/system/csf.service'
chcon: invalid context: ‘system_u:object_r:systemd_unit_file_t:s0’: No such file or directory
chcon: invalid context: ‘system_u:object_r:systemd_unit_file_t:s0’: No such file or directory
Unit /etc/systemd/system/firewalld.service is masked, ignoring.
You see the 2 "chcon invalid context" lines.
I did not see them before on other 18.04 VPS systems as far as I remember.

The check says CSF should work oke though.
Code: Select all
/usr/src/csf# perl /usr/local/csf/bin/csftest.pl
Testing ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...OK
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing xt_connlimit...OK
Testing ipt_owner/xt_owner...OK
Testing iptable_nat/ipt_REDIRECT...OK
Testing iptable_nat/ipt_DNAT...OK
Is this a bug or did I forget to install something? Can this safely be ignored?
Happens both on install.sh or install-generic.sh script.
ForumAdmin
Moderator
Posts: 1449
Joined: 01 Oct 2008, 09:24


This could happen if SELinux is disabled on the server. If so, then there shouldn't be any issues.
2 posts Page 1 of 1