Skip to content

Commit

Permalink
Confine the switcheroo-control service
Browse files Browse the repository at this point in the history
Resolves: RHEL-24268
  • Loading branch information
zpytela committed Jan 14, 2025
1 parent 97be274 commit a2c6c8b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions policy/modules/contrib/switcheroo.fc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/usr/libexec/switcheroo-control -- gen_context(system_u:object_r:switcheroo_control_exec_t,s0)
1 change: 1 addition & 0 deletions policy/modules/contrib/switcheroo.if
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## <summary>switcheroo: D-Bus service to check dual GPU availability</summary>
14 changes: 14 additions & 0 deletions policy/modules/contrib/switcheroo.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
policy_module(switcheroo, 1.0)

#################################
#
# Declarations
#

type switcheroo_control_t;
type switcheroo_control_exec_t;
init_daemon_domain(switcheroo_control_t, switcheroo_control_exec_t)
permissive switcheroo_control_t;

#type samba_bgqd_var_run_t;
#files_pid_file(samba_bgqd_var_run_t)

0 comments on commit a2c6c8b

Please sign in to comment.