<commit_before># filemin-lib.pl

BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();

use lib './lib';
use POSIX;
use Encode qw(decode encode);
use File::Basename;
use File::MimeInfo;

sub get_attr_status {
  return has_command('lsattr');
}

sub get_attr_command {
  return 'lsattr -d ';
}

sub get_selinux_status {
  # return 1;
  return is_selinux_enabled();
}
sub get_selinux_command_type {<commit_msg>If File::MimeInfo cannot be loaded don't fail on ACL page If fails on Ubuntu 2.040, where File::MimeInfo needs to be loaded from ../filemin/lib when used with `acl_security.pl` (which is not needed by this page)<commit_after># filemin-lib.pl

BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();

use lib './lib';
use POSIX;
use Encode qw(decode encode);
use File::Basename;
eval "use File::MimeInfo";

sub get_attr_status {
  return has_command('lsattr');
}

sub get_attr_command {
  return 'lsattr -d ';
}

sub get_selinux_status {
  # return 1;
  return is_selinux_enabled();
}
sub get_selinux_command_type {
{'fraction_non_alphanumeric': 0.13165537270087124, 'fraction_numerical': 0.005808325266214908, 'mean_word_length': 4.84180790960452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3705184', 'n_tokens_mistral': 397, 'n_tokens_neox': 370, 'n_words': 109}