summaryrefslogtreecommitdiff
path: root/src/fs/noseclabelfs/nfsnoseclabelfs.cil
blob: 0ce9073eba70e173aa8de869563173eac15a9310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;; SPDX-FileCopyrightText: M-BM-) 2025 Dominick Grift <dominick.grift@defensec.nl>
;; SPDX-License-Identifier: Unlicense

(block nfs

    (genfscon "afs" "/" fs_context)
    (genfscon "nfs" "/" fs_context)

    (macro map_fs_files ((type ARG1))
	(allow ARG1 fs (file (map))))

    (blockinherit .fs.macro_template_fifo_files)
    (blockinherit .fs.macro_template_lnk_files)
    (blockinherit .fs.macro_template_sock_files)
    (blockinherit .noseclabelfs.template)

    (call .rbacsep.exempt.obj.type (fs)))