reinstall package on Atomic host

arnaud gaboury <[email protected]>
Newsgroups gmane.linux.redhat.fedora.selinux,gmane.linux.redhat.fedora.general
Message-ID <CAK1hC9shvHRszeRsinumFb+ys21oXAT+Q4e7mKxbEroxM=yE9Q@mail.gmail.com>
I run Fedora atomic 29. I made a mistake by removing one very important
SELinux module: su.

I can no more su (I can sudo), which is very annoying. To get back the
module, I need to reinstall the selinux-policy-targeted  package.

------------------------------------------
% sudo setenforce 0
% sudo rpm-ostree uninstall selinux-policy-targeted
error:package/capability 'selinux-policy-targeted' isnot currently requested
% rpm -qa | grep selinux
.....
182:selinux-policy-targeted-3.....
-------------------------
Following this[0] thread, I tried:
----------------------------
 % sudo rpm-ostree override remove selinux-policy-targeted
[sudo] password for gabx:
Checking out tree cb40a05... done
Resolving dependencies... done
Applying 1 override and 79 overlays
Processing packages... done
Running pre scripts... done
Running post scripts... done
Writing rpmdb... done
Writing OSTree commit... done
error: With policy root '/proc/self/fd/25/usr/etc/selinux/targeted':
selabel_open(SELABEL_CTX_FILE): No such file or directory
-----------------------------------

How can I delete/install or reinstall it? Is there a way to get back the su
module?

Thank you for help



[0]https://github.com/projectatomic/rpm-ostree/issues/1386

_______________________________________________
selinux mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.