-
Notifications
You must be signed in to change notification settings - Fork 66
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
Introduce SELinux policy for libvirt drivers #316
base: rawhide
Are you sure you want to change the base?
Conversation
420c5cd
to
256681c
Compare
virt.te
Outdated
virt_driver_template(virtnetworkd) | ||
|
||
type virtnetworkd_var_run_t; | ||
files_pid_file(virtnetworkd_var_run_t) |
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.
You can put declaration of *_var_run_t type to the virt_driver_template()
same as you did with process domains.
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.
ok, I will do it
virt.te
Outdated
#virtxend | ||
type virtxend_t; | ||
type virtxend_exec_t; | ||
init_daemon_domain(virtxend_t, virtxend_exec_t) |
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.
Why virt_driver_template is not used here? Is it for purpose?
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.
I skipped policy for virtxend driver for now.
virt.te
Outdated
allow virtnwfilterd_t self:rawip_socket create_socket_perms; | ||
|
||
allow virtnwfilterd_t virt_var_run_t:dir { create search_dir_perms }; | ||
manage_dirs_pattern(virtnwfilterd_t, virtnwfilterd_var_run_t, virtnwfilterd_var_run_t) |
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 set of rules could be part of virt_driver_template
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.
ok, thanks
256681c
to
ea191fb
Compare
2cce9c3
to
c1a4d43
Compare
1bf7799
to
0fa96eb
Compare
0fa96eb
to
efecdd0
Compare
df9ce09
to
63b2ad8
Compare
1b9d89f
to
54730f7
Compare
New SELinux policy for libvirt drivers: Hypervisor drivers: - virtqemud (QEMU/KVM) - virtlxcd (LXC) - virtvboxd (VirtualBox) Secondary drivers: - virtstoraged (host storage mgmt) - virtnetworkd (virtual network mgmt) - virtinterface (network interface mgmt) - virtnodedevd (physical device mgmt) - virtsecretd (security credential mgmt) - virtnwfilterd (ip[6]tables/ebtables mgmt) - virtproxyd (proxy daemon) SELinux policy for virtvxz and virtxend has not been created yet.
Separate the services from the original virt files that are not libvirt related and create virt_supplementary policy module.
54730f7
to
00972fb
Compare
New SELinux policy for libvirt drivers:
Hypervisor drivers:
Secondary drivers:
SELinux policy for virtvxz and virtxend has not been created yet.