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

Default module prefix now '' #140

Merged
merged 1 commit into from
Dec 24, 2016
Merged

Conversation

traylenator
Copy link
Contributor

With RHEL7.3 the default module prefix causes problems
in particular the following happens

with

selinux::module { 'openshift-cvmfs':
  ensure => present,
  source => 'puppet:///modules/hg_paas/openshift-cvmfs.te',
}
Compiling targeted local_openshift-cvmfs module
/usr/bin/checkmodule:  loading policy configuration from
tmp/local_openshift-cvmfs.tmp
/usr/bin/checkmodule:  Module name openshift-cvmfs is different than the
output base filename local_openshift-cvmfs
make: *** [tmp/local_openshift-cvmfs.mod] Error 1

As far as I can ascertain the prefix only influences the file name
and actual module name comes from what's inside the policy file.

Anyone testing this may well runinto another selinux bug that
is not a problem of this module.

With RHEL7.3 the default module prefix causes problems
in particular the following happens

with

```puppet
selinux::module { 'openshift-cvmfs':
  ensure => present,
  source => 'puppet:///modules/hg_paas/openshift-cvmfs.te',
}

```

```
Compiling targeted local_openshift-cvmfs module
/usr/bin/checkmodule:  loading policy configuration from
tmp/local_openshift-cvmfs.tmp
/usr/bin/checkmodule:  Module name openshift-cvmfs is different than the
output base filename local_openshift-cvmfs
make: *** [tmp/local_openshift-cvmfs.mod] Error 1
```

As far as I can ascertain the prefix only influences the file name
and actual module name comes from what's inside the policy file.

Anyone testing this may well runinto another selinux bug that
is not a problem of this module.

* [CERN ticket reference](https://its.cern.ch/jira/browse/AI-4745)
* [Change in checkmodule](SELinuxProject/selinux@c6acfae#diff-9a0edd4c660062ff41e43d787595141d)
* [puppet problem](https://bugzilla.redhat.com/show_bug.cgi?id=1391886)
* [selinux bug](https://bugzilla.redhat.com/show_bug.cgi?id=1395222)
@traylenator
Copy link
Contributor Author

There is another option to remove the prefix parameter. I think it should actually never be set.

@vinzent
Copy link
Contributor

vinzent commented Dec 15, 2016

@traylenator either way defaulting to unset or removing it at all is a breaking change for existing users.

My vote to remove it completly.

@bastelfreak
Copy link
Member

Thanks @traylenator! I think keeping it for now is the better approach.

@bastelfreak bastelfreak merged commit 395eb11 into voxpupuli:master Dec 24, 2016
EmRowlands pushed a commit to EmRowlands/puppet-selinux that referenced this pull request Mar 29, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants