Skip to content
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

[selinux] postinstall and postuninstall scripts should not contain restorecon -Rv / #424

Open
dahorak opened this issue Sep 18, 2017 · 4 comments
Assignees

Comments

@dahorak
Copy link

dahorak commented Sep 18, 2017

Postinstallation and postuninstallation scripts from following packages tendrl-collectd-selinux, tendrl-node-selinux should not contain command restorecon -Rv /. Rrestoring SELinux security contexts on whole filesystem will take very long time and might broke something else.

The target path should be more precisely specified just to relevant/affected files, not widely to whole filesystem.

# rpm -qp --scripts tendrl-collectd-selinux-1.5.2-1.el7.centos.noarch.rpm
# rpm -qp --scripts tendrl-node-selinux-1.5.2-1.el7.centos.noarch.rpm
@mkudlej
Copy link

mkudlej commented Sep 18, 2017

@Tendrl/tendrl-core I vote for marking this issue as high priority one.

@nnDarshan
Copy link
Contributor

@TimothyAsir Please take a look at this issue

@mbukatov
Copy link
Contributor

This issues will be addressed during my work on moving selinux code into single repository tendrl-selinux.

@TimothyAsirJeyasing
Copy link
Contributor

I understand the issue, I hope we can remove this only after we have a clear details about the list of files will be added or modified. Otherwise some other existing pkgs might not work if its required to work with the particular selinux flag present. I feel that, we can keep this until we have a full set of selinux policy available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants