blob: 1eaf3c04c436973edf48652c172e5096e387614e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
;; SPDX-FileCopyrightText: © 2023 Dominick Grift <dominick.grift@defensec.nl>
;; SPDX-License-Identifier: Unlicense
(tunable invalid_associations true)
(block invalid_associations
(genfscon "selinuxfs" "/booleans/invalid_associations" booleanfile_context)
(blockinherit .booleanfile.template))
(block invalidassociations
(macro type ((type ARG1))
(typeattributeset typeattr ARG1))
(typeattribute typeattr)
(block except
(macro type ((type ARG1))
(typeattributeset typeattr ARG1))
(typeattribute typeattr)
(typeattributeset typeattr
(and invalidassociations.typeattr
(not (exception.typeattr)))))
(block exception
(macro type ((type ARG1))
(typeattributeset typeattr ARG1))
(typeattribute typeattr)))
|