Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
refpolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
yocto-mirrors
refpolicy
Commits
fedd3caf
Commit
fedd3caf
authored
19 years ago
by
Chris PeBenito
Browse files
Options
Downloads
Patches
Plain Diff
update INSTALL and start work on README
parent
f33561f5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
refpolicy/INSTALL
+7
-2
7 additions, 2 deletions
refpolicy/INSTALL
refpolicy/README
+58
-0
58 additions, 0 deletions
refpolicy/README
refpolicy/Rules.modular
+1
-1
1 addition, 1 deletion
refpolicy/Rules.modular
with
66 additions
and
3 deletions
refpolicy/INSTALL
+
7
−
2
View file @
fedd3caf
To install into /etc/selinux/
str
ic
t
:
To install
Reference Policy sources
into /etc/selinux/
refpolicy/src/pol
ic
y
:
make install-src
After install, the old Make targets have been maintained:
This will back up a pre-existing source policy to the
/etc/selinux/refpolicy/src/policy.bak directory.
After installing the policy sources, the old Make targets have been maintained:
Local policy development:
...
...
@@ -21,3 +24,5 @@ Filesystem labeling:
make relabel
make checklabels
make restorelabels
See the README for more information on available make targets.
This diff is collapsed.
Click to expand it.
refpolicy/README
0 → 100644
+
58
−
0
View file @
fedd3caf
1) Reference Policy make targets:
General Make targets:
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.
Make targets specific to modular (loadable modules) policies:
base Compile and package the base module. This is the
default target for modular policies.
modules Compile and package all Reference Policy modules
configured to be built as loadable modules.
MODULENAME.pp Compile and package the MODULENAME Reference Policy
module.
Make targets specific to monolithic policies:
policy Compile a policy locally for development and testing.
This is the default target for monolithic policies.
install Compile and install the policy and file contexts.
load Compile and install the policy and file contexts, then
load the policy.
enableaudit Remove all dontaudit rules from policy.conf.
relabel Relabel the filesystem.
checklabels Check the labels on the filesystem, and report when
a file would be relabeled, but do not change its label.
restorelabels Relabel the filesystem and report each file that is
relabeled.
This diff is collapsed.
Click to expand it.
refpolicy/Rules.modular
+
1
−
1
View file @
fedd3caf
...
...
@@ -28,7 +28,7 @@ vpath %.fc $(ALL_LAYERS)
#
# default action: create all module packages
#
default: base
modules
default: base
base: $(BASE_PKG)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment