Project

General

Profile

Actions

Bug #17395

closed

SELinux policy for technique editor is not applied anymore after upgrade on RHEL/Centos server

Added by Vincent MEMBRÉ almost 4 years ago. Updated almost 4 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

SELinux policy for technique editor is not present anymore after upgrade. It's because we reduced the number of packages and replaced ncf-api-virtualenv package (~ technique editor stuff) by rudder-webapp.

 rudder-webapp                                      x86_64                             1398866025:6.0.5.release-1.EL.7                              Rudder                              118 M
     replacing  ncf.noarch 1398866025:5.0.17.release-1.EL.7
     replacing  ncf-api-virtualenv.noarch 1398866025:5.0.17.release-1.EL.7
     replacing  rudder-inventory-endpoint.noarch 1398866025:5.0.17.release-1.EL.7
     replacing  rudder-inventory-ldap.x86_64 1398866025:5.0.17.release-1.EL.7
     replacing  rudder-jetty.noarch 1398866025:5.0.17.release-1.EL.7
     replacing  rudder-techniques.noarch 1398866025:5.0.17.release-1.EL.7

So rudder-webapp correctly setups the selinux policy,

  Installing : 1398866025:rudder-webapp-6.0.5.release-1.EL.7.x86_64                                                                                                                     21/42 
...
INFO: Applying selinux policy... Done

but ncf-api-virtualenv is removed at the end:
  Erasing    : 1398866025:ncf-api-virtualenv-5.0.17.release-1.EL.7.noarch                                                                                                               30/42 
INFO: Removing the ncf-api-venv user... Done
INFO: Removing ncf-api-virtualenv selinux policy...libsemanage.semanage_direct_remove_key: Removing last ncf-api-virtualenv module (no other ncf-api-virtualenv module exists at another priority).
 Done

Luckily, ncf-api-venv user is not removed, because apache is running, but i think we had some cases where it was removed.

We should include installation of selinux policy in posttrans of rudder-webapp too, or prevent ncf-api-virtualenv postun to run

i think we should include checks on ncf-api-venv user too


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #17474: #17395 should not be in 6.1ReleasedFélix DALLIDETActions
Actions #1

Updated by Vincent MEMBRÉ almost 4 years ago

  • Status changed from New to In progress
Actions #2

Updated by Vincent MEMBRÉ almost 4 years ago

  • Assignee changed from Vincent MEMBRÉ to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2287
Actions #3

Updated by Vincent MEMBRÉ almost 4 years ago

  • Status changed from In progress to Pending release
Actions #4

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.0.7 to 6.0.6
Actions #5

Updated by Vincent MEMBRÉ almost 4 years ago

  • Fix check changed from To do to Checked
Actions #6

Updated by Vincent MEMBRÉ almost 4 years ago

  • Name check changed from To do to Reviewed
Actions #7

Updated by Vincent MEMBRÉ almost 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.0.6 which was released today.

Actions #8

Updated by Alexis Mousset almost 4 years ago

  • Related to Bug #17474: #17395 should not be in 6.1 added
Actions

Also available in: Atom PDF