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

How can I disable some modules to be built #379

Closed
ratagupt opened this issue Jun 16, 2021 · 2 comments
Closed

How can I disable some modules to be built #379

ratagupt opened this issue Jun 16, 2021 · 2 comments

Comments

@ratagupt
Copy link

ratagupt commented Jun 16, 2021

Earlier there were policy/ modules.conf was there which can be used to prevent a module from being used. Now I don't find this file.

This file contains a listing of available modules, and how they will be used when building Reference Policy. To prevent a module from being used, set the module to"off". For monolithic policies, modules set to "base" and "module" will be included in the policy. For modular policies, modules set to "base"will be included in the base module; those set to "module" will becompiled as individual loadable modules.

@pebenito
Copy link
Member

You need to run make conf and a modules.conf will be generated for you, with all modules listed in it.

@ratagupt
Copy link
Author

ratagupt commented Jun 18, 2021

Thanks @pebenito , I am using the following recipe https://git.yoctoproject.org/cgit/cgit.cgi/meta-selinux/tree/recipes-security/refpolicy/refpolicy-minimum_git.bb

Is there a way through I can disable the default modules.conf, I am compiling with refpolicy-minimal but still I want to disable some more module.

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

2 participants