refpolicy | SELinux Reference Policy v2 | Authorization library
kandi X-RAY | refpolicy Summary
kandi X-RAY | refpolicy Summary
install-src Install the policy sources into /etc/selinux/NAME/src/policy, where NAME is defined in the Makefile. If not defined, the TYPE, as defined in the Makefile, is used. The default NAME is refpolicy. A pre-existing source policy will be moved to /etc/selinux/NAME/src/policy.bak. conf Regenerate policy.xml, and update/create modules.conf and booleans.conf. This should be done after adding or removing modules, or after running the bare target. If the configuration files exist, their settings will be preserved. This must be ran on policy sources that are checked out from the CVS repository before they can be used. clean Delete all temporary files, compiled policies, and file_contexts. Configuration files are left intact. bare Do the clean make target and also delete configuration files, web page documentation, and policy.xml. html Regenerate policy.xml and create web page documentation in the doc/html directory.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generate the documentation
- Formats a node description
- Print an error message
- Executes the given data and returns the result
- Get access vectors from a file
- Get permissions for a given object
- Return the module XML
- Get the tunable XML from a file
- Write the output to the file
- Generate a module configuration file
- Generate booleans configuration file
- Generate class permissions
- Read security classes from a file
- Parse a corenet file
- Reads a conf file
- Creates a template node for the given parser
- Print Netfilter configuration
- Print out netfilter configuration
- Read a policy XML document
- Print usage information
- Adds a node
- Execute the expression
- Add a node
- Parse a template string
- Returns the SELinux type
- Execute the script
refpolicy Key Features
refpolicy Examples and Code Snippets
Community Discussions
Trending Discussions on refpolicy
QUESTION
looking to disable some SELinux modules (set to off) and create others in modules.conf. I don't see an obvious way of updating modules.conf as I tried adding my changes as a modules.conf patch but it failed given that the modules.conf file gets built and is not just downloaded by BR so it is not available for patching like other things under the refpolicy directory:
Build window output:
refpolicy 2.20190609 PatchingApplying 0001-refpolicy-update-modules-conf.patch using patch: can't find file to patch at input line 3
I did see in the log that there is a support/sedoctool.py that autogenerates the policy/modules.conf file so that the file is NOT patchable like most other things in the ref policy.
The relevant section of the buildroot/output/build/refpolicy-2.20190609/Makefile:
...ANSWER
Answered 2020-Aug-18 at 02:32Turns out that the sedoctool.py script is reading the doc/policy.xml. Looking at sedoctool.py:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install refpolicy
You can use refpolicy like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page