blob: 22ce108e806b9b285745d93ff51f8d46cfe12f9c [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 .udhcpc.obj_type_transition_datafile (unconfined.subj_typeattr)))
(block udhcpc
;;
;; Contexts
;;
(filecon
"/usr/share/udhcpc"
dir
datafile_file_context)
(filecon
"/usr/share/udhcpc/.*"
any
datafile_file_context)
;;
;; Macros
;;
(macro obj_type_transition_datafile ((type ARG1))
(call .file.datafile_obj_type_transition
(ARG1 datafile dir "udhcpc")))
;;
;; Policy
;;
(blockinherit file.data.obj_template))