How to restore SELinux context for home directory?
0
votes
1
answer
506
views
I installed fresh new Fedora 41 Xfce with /home/kuba directory in different partition from Fedora updated since version 35. The upgrade failed (maybe because I deleted pulsesecure without uninstalling it, to make some space for the new packages).
How I have errors from SELinux:
type=AVC msg=audit(1730469601.380:2566): avc: denied { write } for
pid=3495014 comm="pool-tumblerd" name="normal" dev="sda5"
ino=91488302 scontext=unconfined_u:unconfined_r:thumb_t:s0-
s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir permissive=0
The localized message looked like this (not sure how to get original locale in GUI):
SELinux powstrzymuje /usr/lib64/tumbler-1/tumblerd przed dostępem write w katalog normal.
I want to restore the home directory into proper state, how can I do this. I've tried:
sudo semanage fcontext -a -t home_root_t "/home/kuba(/.*)?"
sudo semanage fcontext -a -t user_home_t "/home/kuba(/.*)?"
## this one gives an error
sudo semanage fcontext -a -t thumb_t "/home/kuba(/.*)?"
sudo restorecon -Rv /home/kuba
But still, I don't have thumbnails on image files downloaded from Google Drive or send via Bluetooth.
How can I restore and add proper SELinux context to my home directory, so I don't get SELinux errors?
Asked by jcubic
(10310 rep)
Nov 1, 2024, 02:08 PM
Last activity: Nov 2, 2024, 05:42 PM
Last activity: Nov 2, 2024, 05:42 PM