blob: 02c871b624f5d0dbb6ca253547938ba1ad58c9d5 [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 .wget.rootfile_obj_type_transition_miscfile
(unconfined.subj_typeattr)))
(in wget
;;
;; Contexts
;;
(filecon
"/\.wget-hsts"
file
miscfile_file_context)
;;
;; Macros
;;
(macro rootfile_obj_type_transition_miscfile ((type ARG1))
(call .sys.rootfile_obj_type_transition
(ARG1 miscfile file ".wget-hsts")))
;;
;; Policy
;;
(blockinherit .file.misc.obj_template)
(call .xattr.associate_filesystems (miscfile)))