forked from OwlCyberDefense/clip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue OwlCyberDefense#86: Get CLIP RHEL7 booting in Enforcing
- Include systemd policy via init_systemd ifdef - Various Makefile/specfile changes - Modify init interfaces to support old init scripts -- Systemd still supports traditional init scripts, so modify init_daemon_domain and init_system_domain to allow both initrc_t and init_t transitions if systemd policy is turned on. Else, default to only intrc_t transitions. - Separate long-running processes/daemons into their own contexts - Let short-running processes fall through to initrc - Label unit files - Add some file_contexts.subs_dist mappings - Updates for systemd_logind_t - Add permissions for systemd_logind_t
- Loading branch information
Showing
53 changed files
with
2,210 additions
and
172 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
packages/clip-selinux-policy/clip-selinux-policy/policy/modules/apps/oscap.fc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
/usr/bin/oscap -- gen_context(system_u:object_r:oscap_exec_t,s0) | ||
/bin/oscap -- gen_context(system_u:object_r:oscap_exec_t,s0) | ||
/usr/libexec/openscap/probe_.* -- gen_context(system_u:object_r:oscap_probe_exec_t,s0) | ||
|
||
/root/ssg gen_context(system_u:object_r:ssg_file_t,s0) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/clip-selinux-policy/clip-selinux-policy/policy/modules/contrib/cron.fc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
packages/clip-selinux-policy/clip-selinux-policy/policy/modules/contrib/dhcp.fc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
packages/clip-selinux-policy/clip-selinux-policy/policy/modules/contrib/readahead.fc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
/sbin/readahead.* -- gen_context(system_u:object_r:readahead_exec_t,s0) | ||
/dev/\.systemd/readahead(/.*)? gen_context(system_u:object_r:readahead_var_run_t,s0) | ||
|
||
/sbin/readahead.* -- gen_context(system_u:object_r:readahead_exec_t,s0) | ||
|
||
/usr/sbin/readahead.* -- gen_context(system_u:object_r:readahead_exec_t,s0) | ||
|
||
/usr/lib/systemd/systemd-readahead -- gen_context(system_u:object_r:readahead_exec_t,s0) | ||
|
||
/var/lib/readahead(/.*)? gen_context(system_u:object_r:readahead_var_lib_t,s0) | ||
|
||
/var/run/readahead.* gen_context(system_u:object_r:readahead_var_run_t,s0) | ||
/var/run/readahead.* gen_context(system_u:object_r:readahead_var_run_t,s0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.