blob: 66de92c63b12f4bdebbee729928bd03e854d96e3 [file] [log] [blame]
;; -*- mode: CIL; fill-column: 79; indent-tabs-mode: nil; -*-
;; SPDX-FileCopyrightText: © 2021 Dominick Grift <dominick.grift@defensec.nl>
;; SPDX-License-Identifier: Unlicense
(in .file
(call .px5g.obj_type_transition_execfile (unconfined.subj_typeattr)))
(block px5g
;;
;; Contexts
;;
(filecon
"/usr/bin/px5g"
file
execfile_file_context)
;;
;; Macros
;;
(macro obj_type_transition_execfile ((type ARG1))
(call .file.execfile_obj_type_transition
(ARG1 execfile file "px5g")))
;;
;; Policy
;;
(blockinherit .file.exec.obj_template))