Skip to content

Troubleshooting

Tom Zhang edited this page Feb 6, 2022 · 11 revisions

This page is for intructions to troubleshoot known issues

Issues

These are the issues that we have a solution for

SELinux Access Denial

Platforms affected:

RHEL, Fedora, CentOS, RockyLinux, QubesOS, Debian, Ubuntu and OpenSUSE

Initial bug report posted for search engine indexing for problem solving: https://github.com/JakeRoggenbuck/auto-clock-speed/issues/166

Description

SELinux (a Linux kernel-based security module) will prevent acs from accessing required documents

To Check

To Reproduce

Use acs in monitor acs monitor mode or edit mode sudo acs run

Expected behavior

ACS will always display the powersave governor regardless of circumstances

Screenshots

image

On Laptop

Version 0.1.7 latest main

Example Audit Message:

type=AVC msg=audit(num.993:136): avc: denied { read open } for pid=1054 comm="(acs)" path="/home/name/.cargo/bin/acs" dev="drive" ino=2438319 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0

Solution

To see the denied access log, run: grep "SELinux is preventing" /var/log/messages

To temperory allow acs access through SELinux:

# ausearch -c '(acs)' --raw | audit2allow -M my-acs
# semodule -X 300 -i my-acs.pp

More information about SELinux permission denials on:

RedHat's Documentation

Redhat's Troubleshooting Guide

Clone this wiki locally