→ Celebrate SysAdmin Day 2024 with Lansweeper Enter our Giveaway here

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Engaged Sweeper
Has anyone had any success with writing a policy for SELinux that works ? I have a working one for my RedHat 7.x systems and even some pre 8.1, 8.2 systems, but for some reason it won't work on RedHat 8.5.

SELinux is preventing /usr/bin/sudo from map access on the file /usr/bin/sudo.

***** Plugin catchall_boolean (89.3 confidence) suggests ******************

If you want to allow domain to can mmap files
Then you must tell SELinux about this by enabling the 'domain_can_mmap_files' boolean.

setsebool -P domain_can_mmap_files 1

***** Plugin catchall (11.6 confidence) suggests **************************

If you believe that sudo should be allowed map access on the sudo file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'sudo' --raw | audit2allow -M my-sudo
# semodule -X 300 -i my-sudo.pp

Additional Information:
Source Context system_u:system_r:init_t:s0
Target Context system_u:object_r:sudo_exec_t:s0
Target Objects /usr/bin/sudo [ file ]
Source sudo
Source Path /usr/bin/sudo
Port <Unknown>
Host fedora.local
Source RPM Packages sudo-1.8.29-7.el8_4.1.x86_64
Target RPM Packages sudo-1.8.29-7.el8_4.1.x86_64
SELinux Policy RPM selinux-policy-targeted-3.14.3-80.el8_5.2.noarch
Local Policy RPM selinux-policy-targeted-3.14.3-80.el8_5.2.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name fedora.local
Platform Linux fedora.local
4.18.0-348.20.1.el8_5.x86_64 #1 SMP Tue Mar 8
12:56:54 EST 2022 x86_64 x86_64
Alert Count 6
First Seen 2022-04-18 16:01:46 PDT
Last Seen 2022-04-18 16:04:47 PDT
Local ID 3abaab1a-78f9-41fd-a873-cf8a06bbc24c
Engaged Sweeper
Hey Keimond,

i also have the same issues with Redhat 8!

I contacted the Lansweeper Support multiple times to ask for a proper solution now they created two Tickets.

SELinux with LSAgent causes RHEL8 Systems to freeze.


SELinux causes the LSAgent to fail on RHEL8 Systems.

Sadly there is still no update 😞

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now