forked from sjvermeu/hardened-refpolicy
-
Notifications
You must be signed in to change notification settings - Fork 5
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
dracut: various fixes #19
Open
jpds
wants to merge
16
commits into
perfinion:master
Choose a base branch
from
jpds:dracut-fixes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
81be1fc
dracut: Added dracut_conf_t type.
jpds f02254d
dracut.te: Added domain obj/role/system change exemptions.
jpds 549122b
dracut.te: Added fs_getattr_xattr_fs().
jpds e780aa5
dracut.te: Added files_mmap_read_kernel_modules().
jpds 0dc68f2
dracut.te: Added dev_read_urand().
jpds 2d8964d
dracut.te: Added files_tmp_filetrans().
jpds 97bad4a
dracut.te: Added portage_domtrans_gcc_config().
jpds 6f345dc
dracut.te: Allow more process and capability features.
jpds aff6e26
dracut.te: Added files_unconfined().
jpds fd9969f
dracut.te: Added seutil_relabelto_bin_policy().
jpds 8348287
dracut.te: Added storage_getattr_fixed_disk_dev().
jpds 1c05d33
dracut.te: Use libs_run_ldconfig() instead of exec.
jpds de8cd4b
portage.te: Added dracut_run().
jpds ca279cf
dracut.fc: Added dracut-install as dracut_exec_t.
jpds b9fb2f2
dracut.te: Added storage_raw_rw_fixed_disk().
jpds ddbc34a
dracut.te: Added LVM control accesses.
jpds File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
/etc/dracut\.conf -- gen_context(system_u:object_r:dracut_conf_t,s0) | ||
/etc/dracut\.conf\.d(/.*)? gen_context(system_u:object_r:dracut_conf_t,s0) | ||
# | ||
# /usr | ||
# | ||
/usr/sbin/dracut -- gen_context(system_u:object_r:dracut_exec_t,s0) | ||
/usr/bin/dracut -- gen_context(system_u:object_r:dracut_exec_t,s0) | ||
/usr/lib/dracut/dracut-install -- gen_context(system_u:object_r:dracut_exec_t,s0) | ||
/usr/sbin/dracut -- gen_context(system_u:object_r:dracut_exec_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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uh these are dangerous permissions. Why does dracut need to manage shadow?
Also I'd need a pretty strong justification if things need the foo_change_exemption() rules, those are usually for things like login managers that need to switch to different users or security levels etc.
sometimes those rules showing up means PAM or chk_passwd stuff. does this instead need
auth_use_pam(dracut_t)
or maybeauth_use_nsswitch
?I see this line:
modules.d/99base/module-setup.sh:33: [[ $hostonly ]] && grep '^root:' "$dracutsysrootdir"/etc/shadow >> "$initdir/etc/shadow"
but at the most that should need read_shadow not manage_shadow right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are needed because dracut does this:
Also needs
manage_shadow
as otherwise it hits aneverallow
rule with the files_unconfined permission.