blob: 02c871b624f5d0dbb6ca253547938ba1ad58c9d5 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001;; -*- mode: CIL; fill-column: 79; indent-tabs-mode: nil; -*-
2;; SPDX-FileCopyrightText: © 2021 Dominick Grift <dominick.grift@defensec.nl>
3;; SPDX-License-Identifier: Unlicense
4
5(in .file
6 (call .wget.rootfile_obj_type_transition_miscfile
7 (unconfined.subj_typeattr)))
8
9(in wget
10
11 ;;
12 ;; Contexts
13 ;;
14
15 (filecon
16 "/\.wget-hsts"
17 file
18 miscfile_file_context)
19
20 ;;
21 ;; Macros
22 ;;
23
24 (macro rootfile_obj_type_transition_miscfile ((type ARG1))
25 (call .sys.rootfile_obj_type_transition
26 (ARG1 miscfile file ".wget-hsts")))
27
28 ;;
29 ;; Policy
30 ;;
31
32 (blockinherit .file.misc.obj_template)
33
34 (call .xattr.associate_filesystems (miscfile)))