Skip to content

Commit

Permalink
Xen hotplug scripts should be initrc_exec_t
Browse files Browse the repository at this point in the history
This makes them unconfined while ensuring that programs they spawn have
the correct (possibly confined) contexts.

Reported-by: Marek Marczykowski-Górecki <[email protected]>
Fixes: QubesOS/qubes-issues#8155
  • Loading branch information
DemiMarie committed Apr 30, 2023
1 parent ed3acd6 commit 252e5cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selinux/qubes-misc.fc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ define(`slash_run',`dnl
/usr/lib/qubes(/.*)? gen_context(system_u:object_r:bin_t,s0)
/usr/lib/qubes/init(/.*)? -d gen_context(system_u:object_r:etc_t,s0)
/usr/lib/qubes/init(/.*)? -- gen_context(system_u:object_r:initrc_exec_t,s0)
/etc/xen/scripts/[!/]+ -- gen_context(system_u:object_r:initrc_exec_t,s0)
/usr/lib/qubes/network-manager-prepare-conf-dir -- gen_context(system_u:object_r:bin_t,s0)
slash_run(`qubes(/.*)?',`qubes_var_run')
slash_run(`qubes-service',`initrc_var_run',`-d')
Expand Down

0 comments on commit 252e5cd

Please sign in to comment.