-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotate hook does not work on Fedora (SELinux?!) #116
Comments
I haved asked this as a question on Unix Stack Exchange. |
I thought I might try and see if I can find a solution, but it seems that I'm not even getting to where you are right now... This is my journalctl -f output:
However, if I check the referenced abrt problem directory, the backtrace looks like this:
Any idea why thinkpad-scripts supposedly isn't installed or said to be the wrong version? I have installed the current version from source (this repo, master branch) via
Am I missing anything? |
The current master is 4.7.4 since I have incorporated your fix some 9 hours ago. I would guess that there is something left over from 4.7.3 somewhere on your system and that causes the conflict. Did you restart the system between the upgrade and trying to reproduce the bug? |
I got my hands into SELinux yesterday when I worked on pam_mount on Fedora 24 which required me to generate some new policies. Yesterday I have upgraded my machine to Fedora 24. The rotate hook does not work, so I would say that this problem is exactly as before. Using my new knowledge, I have ran
From that I got a policy snippet (
Using
I am not to sure what to make out of this. The |
I don't really know anything about SELinux, but here are a few (hopefully helpful) thoughts:
|
I have just tried to use Closing the lid:
Opening the lid:
In principle one should be able to go through this now and extract all the needed permissions to get this running again. Our scripts seem to work, it really is SELinux what blocks it on Fedora. Whether it is a good idea to open up SELinux without understanding what it really does and what the additional rules imply, is a different story. |
Ever since I switched to Fedora, the rotate hook does not work any more. Now I finally have the time to fix this.
The event is the following, the first one is close, the second one to open:
The event does match:
Then I ran
journalctl -f
and this is what I got:From my limited knowledge of SELinux, the
_r
and_t
sound very much like that. Now I have to read up on SELinux in order to find out to enable an exception for this.The text was updated successfully, but these errors were encountered: