From 31ac26dd5813d0719b0693d7c7bc9b75f1100c06 Mon Sep 17 00:00:00 2001 From: "Sugar, David" Date: Mon, 18 Feb 2019 20:00:30 +0000 Subject: [PATCH] Add interface to run cdrecord in caller domain Signed-off-by: Dave Sugar --- policy/modules/apps/cdrecord.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/apps/cdrecord.if b/policy/modules/apps/cdrecord.if index fbc20f694..0fb8d8985 100644 --- a/policy/modules/apps/cdrecord.if +++ b/policy/modules/apps/cdrecord.if @@ -30,3 +30,22 @@ interface(`cdrecord_role',` allow $2 cdrecord_t:process { ptrace signal_perms }; ps_process_pattern($2, cdrecord_t) ') + +######################################## +## +## Execute cdrecord in the caller domain. +## +## +## +## Domain allowed access. +## +## +# +interface(`cdrecord_exec',` + gen_require(` + type cdrecord_exec_t; + ') + + corecmd_search_bin($1) + can_exec($1, cdrecord_exec_t) +')